copy code from check_view_access() to check_controller_access()

This commit is contained in:
Uwe Steinmann 2016-04-13 18:29:58 +02:00
parent b80cb91d54
commit 94682fb0ff

View File

@ -414,7 +414,8 @@ class SeedDMS_AccessOperation {
$this->_aro = SeedDMS_Aro::getInstance($this->user->getRole(), $this->dms); $this->_aro = SeedDMS_Aro::getInstance($this->user->getRole(), $this->dms);
foreach($scripts as $script) { foreach($scripts as $script) {
$aco = SeedDMS_Aco::getInstance($scope.'/'.$script.'/'.$action, $this->dms); $aco = SeedDMS_Aco::getInstance($scope.'/'.$script.'/'.$action, $this->dms);
if($acl->check($this->_aro, $aco)) $ll = $acl->check($this->_aro, $aco);
if($ll === 1 && !$this->user->isAdmin() || $ll !== -1 && $this->user->isAdmin())
return true; return true;
} }
return false; return false;