better handling of access rights if advanced access rights are turn off

check_view_access() returns true for admins and false otherwise
This commit is contained in:
Uwe Steinmann 2016-04-21 17:19:58 +02:00
parent cc685141e9
commit 823e7bf76e

View File

@ -360,8 +360,12 @@ class SeedDMS_AccessOperation {
* no specific access right is set, otherwise false
*/
function check_view_access($view, $get=array()) { /* {{{ */
if(!$this->settings->_advancedAcl)
return true;
if(!$this->settings->_advancedAcl) {
if($this->user->isAdmin())
return true;
else
return false;
}
if(is_string($view)) {
$scripts = array($view);
} elseif(is_array($view)) {