Unverified Commit 7488b512 authored by Jerome Boucher's avatar Jerome Boucher
Browse files

update richt check to change system executing scheduling tasks while not in security mode

parent c1f2c20e
Pipeline #10103 failed with stages
in 49 seconds
......@@ -120,11 +120,14 @@ class scheduling
$account = \laabs::callService("auth/userAccount/read_userAccountId_", $accountId);
$hasSecurityLevel = isset(\laabs::configuration('auth')['useSecurityLevel']) ? (bool) \laabs::configuration('auth')['useSecurityLevel'] : false;
if (is_null($account->securityLevel)
|| !$account->securityLevel === \bundle\auth\Model\account::SECLEVEL_USER
|| !$hasSecurityLevel
) {
$isUser = false;
if ($hasSecurityLevel) {
if (is_null($account->securityLevel)
|| !$account->securityLevel === \bundle\auth\Model\account::SECLEVEL_USER
) {
$isUser = false;
} else {
$isUser = true;
}
} else {
$isUser = true;
}
......
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