From 825ad9b64ee5f2effebfc7767132822417e908d7 Mon Sep 17 00:00:00 2001 From: coderkun Date: Wed, 23 Apr 2014 21:02:44 +0200 Subject: [PATCH] check Character before accessing in SeminaryController --- app/controllers/SeminaryController.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/SeminaryController.inc b/app/controllers/SeminaryController.inc index 7e28f18b..afdea5f8 100644 --- a/app/controllers/SeminaryController.inc +++ b/app/controllers/SeminaryController.inc @@ -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(); } }