mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
copy code from check_view_access() to check_controller_access()
This commit is contained in:
parent
b80cb91d54
commit
94682fb0ff
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user