Skip to content

Commit

Permalink
Fixed broken Flex Page authorization for groups
Browse files Browse the repository at this point in the history
  • Loading branch information
mahagr committed Jun 30, 2020
1 parent df279f8 commit 411d689
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions UPGRADE-1.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ protected function isAuthorizedByGroup(UserInterface $user, string $action, stri
continue;
}

$auth = $access->authorize($action, $scope);
$auth = $access->authorize($action);
if (is_bool($auth)) {
if ($auth === false) {
return false;
Expand Down

0 comments on commit 411d689

Please sign in to comment.