Fix bug with permissions including more than one dash, closes #727
This commit is contained in:
parent
30ab6ed692
commit
2f42396317
2 changed files with 8 additions and 6 deletions
|
@ -86,7 +86,7 @@ class KeyCreationService
|
|||
$nodes = $this->permissionService->getPermissions();
|
||||
|
||||
foreach ($permissions as $permission) {
|
||||
@list($block, $search) = explode('-', $permission);
|
||||
@list($block, $search) = explode('-', $permission, 2);
|
||||
|
||||
if (
|
||||
(empty($block) || empty($search)) ||
|
||||
|
@ -100,7 +100,7 @@ class KeyCreationService
|
|||
}
|
||||
|
||||
foreach ($administrative as $permission) {
|
||||
@list($block, $search) = explode('-', $permission);
|
||||
@list($block, $search) = explode('-', $permission, 2);
|
||||
|
||||
if (
|
||||
(empty($block) || empty($search)) ||
|
||||
|
|
Reference in a new issue