check Character before accessing in SeminaryController
This commit is contained in:
parent
a09254b8f2
commit
825ad9b64e
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@
|
|||
|
||||
|
||||
// Check permissions
|
||||
if(!array_key_exists('characterroles', self::$character) || count(array_intersect(self::$character['characterroles'], $permissions)) == 0) {
|
||||
if(is_null(self::$character) || !array_key_exists('characterroles', self::$character) || count(array_intersect(self::$character['characterroles'], $permissions)) == 0) {
|
||||
throw new \nre\exceptions\AccessDeniedException();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue