check_controller_access() returns true if !guest and adv access controll is off

This commit is contained in:
Uwe Steinmann 2018-03-31 14:28:57 +02:00
parent 666ced5fea
commit c2ecc4adbb

View File

@ -464,8 +464,12 @@ class SeedDMS_AccessOperation {
* @return boolean true if access is allowed otherwise false * @return boolean true if access is allowed otherwise false
*/ */
function check_controller_access($controller, $get=array()) { /* {{{ */ function check_controller_access($controller, $get=array()) { /* {{{ */
if(!$this->settings->_advancedAcl) if(!$this->settings->_advancedAcl) {
return false; if($this->user->isGuest())
return false;
else
return true;
}
if(is_string($controller)) { if(is_string($controller)) {
$scripts = array($controller); $scripts = array($controller);
} elseif(is_array($controller)) { } elseif(is_array($controller)) {