acces controll changed in employeedetails controller
This commit is contained in:
parent
2d85e688e4
commit
651ee5fc88
@ -46,14 +46,9 @@ 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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user