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