From 836d5cbb261e56a5ca6a5b8415697f6aab37a3ba Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Fri, 27 Oct 2017 14:26:58 +0000 Subject: [PATCH] employeedetails controller isadmin function removed --- application/controllers/employeedetails.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/application/controllers/employeedetails.php b/application/controllers/employeedetails.php index 3a0ba9d3..346571a8 100755 --- a/application/controllers/employeedetails.php +++ b/application/controllers/employeedetails.php @@ -509,12 +509,7 @@ echo "";redirect('employeeListing',' function ViewEmployee($EmpNO='') { - if($this->isAdmin() == TRUE) - { - $this->loadThis(); - } - else - { + if($EmpNO == '') { $EmpID = $_GET['EmpID']; @@ -543,7 +538,7 @@ echo "";redirect('employeeListing',' $this->loadViews("editEmployee", $this->global, $data, NULL); - } + } /* To Check the email exists in the database or not for the employee*/ function checkMailEmp()