From 35e300ca757700d9a0fda30d9f8106052adf0d8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Fri, 26 Jan 2018 16:01:09 +0100 Subject: [PATCH] Added permission check to InfoCenter Main page --- application/controllers/system/infocenter/InfoCenter.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/controllers/system/infocenter/InfoCenter.php b/application/controllers/system/infocenter/InfoCenter.php index 1d0b25b3f..4f4cefd79 100644 --- a/application/controllers/system/infocenter/InfoCenter.php +++ b/application/controllers/system/infocenter/InfoCenter.php @@ -70,6 +70,10 @@ class InfoCenter extends VileSci_Controller $this->_setAuthUID(); // sets property uid + $this->load->library('PermissionLib'); + if(!$this->permissionlib->isBerechtigt('basis/person')) + show_error('You have no Permission! You need Infocenter Role'); + $this->_setNavigationMenuArray(); // sets property navigationMenuArray $this->navigationHeaderArray = array(