Fixed broken Flex Page authorization for groups

This commit is contained in:
Matias Griese
2020-06-30 21:10:43 +03:00
parent df279f879f
commit 411d689a48
3 changed files with 3 additions and 1 deletions

View File

@@ -10,6 +10,7 @@
* Fixed retina images not working in Flex [flex-objects#64](https://github.com/trilbymedia/grav-plugin-flex-objects/issues/64)
* Fixed plugin initialization in CLI
* Fixed broken logic in `Page::topParent()` when dealing with first-level pages
* Fixed broken `Flex Page` authorization for groups
# v1.7.0-rc.12
## 06/08/2020

View File

@@ -217,6 +217,7 @@
* **BC BREAK** Moved all Flex type classes under `Grav\Common\Flex`
* **BC BREAK** `FlexStorageInterface::getStoragePath()` and `getMediaPath()` can now return null
* **BC BREAK** Flex objects no longer return temporary key if they do not have one; empty key is returned instead
* You can add `edit_list.html.twig` file to a form field in order to customize look in the listing view
### Templating

View File

@@ -170,7 +170,7 @@ trait PageAuthorsTrait
continue;
}
$auth = $access->authorize($action, $scope);
$auth = $access->authorize($action);
if (is_bool($auth)) {
if ($auth === false) {
return false;