mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +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
|
* @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)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user