mirror of
https://github.com/getgrav/grav.git
synced 2026-07-13 01:03:28 +02:00
Regression: Fixed bad method call in FlexDirectory::getAuthorizeRule()
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
## mm/dd/2020
|
||||
|
||||
1. [](#bugfix)
|
||||
* Regression: fatal error in blueprints [#2811](https://github.com/getgrav/grav/issues/2811)
|
||||
* Regression: Fixed fatal error in blueprints [#2811](https://github.com/getgrav/grav/issues/2811)
|
||||
* Regression: Fixed bad method call in FlexDirectory::getAuthorizeRule()
|
||||
|
||||
# v1.7.0-rc.5
|
||||
## 02/03/2020
|
||||
|
||||
@@ -108,8 +108,8 @@
|
||||
"api-16": "vendor/bin/phpdoc-md generate system/src > user/pages/14.api/default.16.md",
|
||||
"api-15": "vendor/bin/phpdoc-md generate system/src > user/pages/14.api/default.md",
|
||||
"post-create-project-cmd": "bin/grav install",
|
||||
"phpstan": "vendor/bin/phpstan analyse -l 3 -c ./tests/phpstan/phpstan.neon system/src --memory-limit=300M",
|
||||
"phpstan-framework": "vendor/bin/phpstan analyse -l 7 -c ./tests/phpstan/phpstan.neon system/src/Grav/Framework --memory-limit=300M",
|
||||
"phpstan": "vendor/bin/phpstan analyse -l 3 -c ./tests/phpstan/phpstan.neon system/src --memory-limit=340M",
|
||||
"phpstan-framework": "vendor/bin/phpstan analyse -l 7 -c ./tests/phpstan/phpstan.neon system/src/Grav/Framework --memory-limit=128M",
|
||||
"phpstan-plugins": "vendor/bin/phpstan analyse -l 0 -c ./tests/phpstan/plugins.neon user/plugins --memory-limit=300M",
|
||||
"test": "vendor/bin/codecept run unit",
|
||||
"test-windows": "vendor\\bin\\codecept run unit"
|
||||
|
||||
@@ -117,6 +117,10 @@ trait FlexAuthorizeTrait
|
||||
*/
|
||||
protected function getAuthorizeRule(string $scope, string $action): string
|
||||
{
|
||||
if ($this instanceof FlexDirectory) {
|
||||
return $this->getAuthorizeRule($scope, $action);
|
||||
}
|
||||
|
||||
return $this->getFlexDirectory()->getAuthorizeRule($scope, $action);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user