Fix edit_users load problem with removed globals

acl_admin/base_acl_leve

Added public access methods to read this when array_* files are included.
This commit is contained in:
Clemens Schwaighofer
2023-01-10 16:01:02 +09:00
parent 00591deb00
commit b0293b52bd
2 changed files with 24 additions and 2 deletions

View File

@@ -474,6 +474,27 @@ class Generate extends \CoreLibs\DB\Extended\ArrayIO
// PUBLIC METHODS |=================================================>
/**
* return current acl admin flag (1/0)
*
* @return int Admin flag 1 for on or 0 for off
*/
public function getAclAdmin(): int
{
return $this->acl_admin;
}
/**
* check if current acl level is match to requested on
*
* @param int $level Requested ACL level
* @return bool if current level equal or larger return tru, else false
*/
public function checkBaseACL(int $level): bool
{
return $this->base_acl_level >= $level ? true : false;
}
/**
* dumps all values into output (for error msg)
*