We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22a9459 commit 57be265Copy full SHA for 57be265
src/services/Authorization.php
@@ -84,6 +84,16 @@ public function getRolesTree(): array
84
return $this->rolesTree;
85
}
86
87
+ public function getPermissionsForRoles(): array
88
+ {
89
+ return $this->permissionsForRoles;
90
+ }
91
+
92
+ public function setPermissionsForRoles(array $permissionsForRoles): void
93
94
+ $this->permissionsForRoles = $permissionsForRoles;
95
96
97
public function getAllSubRolesAndPermissionsForRole(RoleInterface $role): array
98
{
99
$rolesArray = [$role->getCode()];
0 commit comments