From 651ee5fc8859f46b02ce48eed191817b58f89193 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Mon, 11 Dec 2017 13:36:27 +0000 Subject: [PATCH] acces controll changed in employeedetails controller --- application/controllers/employeedetails.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/application/controllers/employeedetails.php b/application/controllers/employeedetails.php index 06cf413a..c65a319b 100755 --- a/application/controllers/employeedetails.php +++ b/application/controllers/employeedetails.php @@ -46,14 +46,9 @@ class employeedetails extends BaseController if($this->role == ROLE_ADMIN || $this->DEPCode == HR) { - - if($this->DEPCode != HR) - { $this->loadViews("employeeListing", $this->global, $data, NULL); - } - } else @@ -404,11 +399,10 @@ echo "";redirect('employeeListing',' if($this->role == ROLE_ADMIN || $this->DEPCode == HR) { - if($this->DEPCode != HR) - { + $this->loadViews("addemployee", $this->global, $data, NULL); - } + } else