Verified Commit 44c45331 authored by Alexandre Morin's avatar Alexandre Morin
Browse files

fix () : get user account to audit typeahead

parent 68ebeccd
Pipeline #6966 canceled with stages
......@@ -53,7 +53,7 @@ class userAccount
$this->sdoFactory = $sdoFactory;
$this->passwordEncryption = $passwordEncryption;
$this->securityPolicy = $securityPolicy;
$this->adminUsers = $adminUsers;
$this->adminUsers = \laabs::configuration('auth')['adminUsers'];
$this->hasSecurityLevel = isset(\laabs::configuration('auth')['useSecurityLevel']) ? (bool) \laabs::configuration('auth')['useSecurityLevel'] : false;
}
......@@ -98,7 +98,6 @@ class userAccount
}
$account = $this->sdoFactory->read("auth/account", array("accountId" => $accountId));
$queryAssert[] = "accountId!=['".$accountId."']";
if (!empty($this->adminUsers) && !in_array($account->accountName, $this->adminUsers)) {
$queryAssert[] = "accountId!=['".\laabs\implode("','", $this->adminUsers)."']";
......
......@@ -23,7 +23,7 @@ namespace presentation\maarchRM\UserStory\app;
* Interface for service
*
*/
interface serviceInterface
interface accountInterface
{
/**
* List all services to display
......@@ -31,4 +31,11 @@ interface serviceInterface
* @uses auth/serviceAccount/readIndex
*/
public function readServiceTodisplay();
/**
* List all users to display
*
* @uses auth/userAccount/readUserlist
*/
public function readUserTodisplay();
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment