Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
330582f273 | ||
|
|
b0293b52bd |
@@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/** @var \CoreLibs\Output\Form\Generate $this */
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$edit_users = [
|
$edit_users = [
|
||||||
@@ -331,10 +333,11 @@ $edit_users = [
|
|||||||
// if base acl is not 90 only list enabled
|
// if base acl is not 90 only list enabled
|
||||||
// if not admin flag, do not list admin flagged
|
// if not admin flag, do not list admin flagged
|
||||||
. (
|
. (
|
||||||
!$_POST['acl_admin'] ?
|
!$this->getAclAdmin() ?
|
||||||
"WHERE admin = 0 "
|
"WHERE admin = 0 "
|
||||||
. (
|
. (
|
||||||
$_POST['base_acl_level'] < 90 ?
|
!$this->checkBaseACL(90) ?
|
||||||
|
// $_POST['base_acl_level'] < 90 ?
|
||||||
"AND enabled = 1 " :
|
"AND enabled = 1 " :
|
||||||
""
|
""
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -474,6 +474,27 @@ class Generate extends \CoreLibs\DB\Extended\ArrayIO
|
|||||||
|
|
||||||
// PUBLIC METHODS |=================================================>
|
// 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)
|
* dumps all values into output (for error msg)
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user