mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
check_controller_access() returns true if !guest and adv access controll is off
This commit is contained in:
parent
666ced5fea
commit
c2ecc4adbb
|
@ -464,8 +464,12 @@ class SeedDMS_AccessOperation {
|
|||
* @return boolean true if access is allowed otherwise false
|
||||
*/
|
||||
function check_controller_access($controller, $get=array()) { /* {{{ */
|
||||
if(!$this->settings->_advancedAcl)
|
||||
return false;
|
||||
if(!$this->settings->_advancedAcl) {
|
||||
if($this->user->isGuest())
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
if(is_string($controller)) {
|
||||
$scripts = array($controller);
|
||||
} elseif(is_array($controller)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user