few fixed for Character permissions
This commit is contained in:
parent
b471efc970
commit
437353ca81
7 changed files with 17 additions and 9 deletions
|
|
@ -137,7 +137,7 @@
|
|||
|
||||
|
||||
// Check permissions
|
||||
if(count(array_intersect(self::$user['seminaryroles'], $permissions)) == 0) {
|
||||
if(!array_key_exists('seminaryroles', self::$user) || count(array_intersect(self::$user['seminaryroles'], $permissions)) == 0) {
|
||||
throw new \nre\exceptions\AccessDeniedException();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue