Skip to content

Commit

Permalink
Merge pull request sapplica#121 from xrobau/bugfix/remove-duplicate-i…
Browse files Browse the repository at this point in the history
…tems

These ACL resources are duplicated.
  • Loading branch information
go-faustino authored Apr 9, 2018
2 parents 38b207d + ceadd17 commit 1a19fd8
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions application/modules/default/plugins/AccessControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -624,30 +624,6 @@ protected function _getAcl()
$acl->addResource(new Zend_Acl_Resource('default:userloginlog'));
$acl->allow('admin', 'default:userloginlog', array('index','empnameauto','empidauto','empipaddressauto','empemailauto'));

$acl->addResource(new Zend_Acl_Resource('default:addemployeeleaves'));
$acl->allow('management', 'default:addemployeeleaves', array('index','add','edit','view','Add Employee Leave'));

$acl->addResource(new Zend_Acl_Resource('default:announcements'));
$acl->allow('management', 'default:announcements', array('index','getdepts','uploadsave','uploaddelete','add','edit','delete','view','Announcements'));

$acl->addResource(new Zend_Acl_Resource('default:appraisalcategory'));
$acl->allow('management', 'default:appraisalcategory', array('index','addpopup','getappraisalcategory','add','edit','delete','view','Parameters'));

$acl->addResource(new Zend_Acl_Resource('default:appraisalhistoryself'));
$acl->allow('management', 'default:appraisalhistoryself', array('index','view','My Appraisal History'));

$acl->addResource(new Zend_Acl_Resource('default:disciplinarymyincidents'));
$acl->allow('admin', 'default:disciplinarymyincidents', array('index','view','edit','saveemployeeappeal','getdisciplinaryincidentpdf'));

$acl->addResource(new Zend_Acl_Resource('default:disciplinaryteamincidents'));
$acl->allow('admin', 'default:disciplinaryteamincidents', array('index','view'));

$acl->addResource(new Zend_Acl_Resource('default:disciplinaryallincidents'));
$acl->allow('admin', 'default:disciplinaryallincidents', array('index','view'));

$acl->addResource(new Zend_Acl_Resource('default:disciplinaryviolation'));
$acl->allow('admin', 'default:disciplinaryviolation', array('index','add','view','edit','delete','addpopup'));

}
if($role == 2 )
{
Expand Down Expand Up @@ -2301,4 +2277,4 @@ protected function _getAcl()
}
}

?>
?>

0 comments on commit 1a19fd8

Please sign in to comment.