acces controll changed in employeedetails controller

This commit is contained in:
gandhimathi 2017-12-11 13:36:27 +00:00
parent 2d85e688e4
commit 651ee5fc88

View File

@ -47,13 +47,8 @@ class employeedetails extends BaseController
if($this->role == ROLE_ADMIN || $this->DEPCode == HR) if($this->role == ROLE_ADMIN || $this->DEPCode == HR)
{ {
if($this->DEPCode != HR)
{
$this->loadViews("employeeListing", $this->global, $data, NULL); $this->loadViews("employeeListing", $this->global, $data, NULL);
}
} }
else else
@ -404,11 +399,10 @@ echo "<script>alert('Record Not Saved!');</script>";redirect('employeeListing','
if($this->role == ROLE_ADMIN || $this->DEPCode == HR) if($this->role == ROLE_ADMIN || $this->DEPCode == HR)
{ {
if($this->DEPCode != HR)
{
$this->loadViews("addemployee", $this->global, $data, NULL); $this->loadViews("addemployee", $this->global, $data, NULL);
}
} }
else else