Regression: Fixed bad method call in FlexDirectory::getAuthorizeRule()

This commit is contained in:
Matias Griese
2020-02-04 10:59:26 +02:00
parent d0a22ad416
commit f012d2d13a
3 changed files with 8 additions and 3 deletions

View File

@@ -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

View File

@@ -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"

View File

@@ -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);
}
}