Skip to content

Commit

Permalink
autocomplete action access permission is mapped on list access permis…
Browse files Browse the repository at this point in the history
…sion
  • Loading branch information
alterphp committed Apr 8, 2018
1 parent b5d1af9 commit be0534a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ protected function embeddedListAction()
*/
protected function isActionAllowed($actionName)
{
// embeddedList action is mapped to list action for access permissions
if ('embeddedList' == $actionName) {
// autocomplete and embeddedList action are mapped to list action for access permissions
if (in_array($actionName, ['autocomplete', 'embeddedList'])) {
$actionName = 'list';
}

Expand Down

0 comments on commit be0534a

Please sign in to comment.