up observations
This commit is contained in:
@@ -43,13 +43,9 @@ class Light extends Api
|
|||||||
//Check if the user has the case
|
//Check if the user has the case
|
||||||
$appDelegation = new \AppDelegation();
|
$appDelegation = new \AppDelegation();
|
||||||
$aCurUser = $appDelegation->getCurrentUsers($applicationUid, $delIndex);
|
$aCurUser = $appDelegation->getCurrentUsers($applicationUid, $delIndex);
|
||||||
if (!empty($aCurUser)) {
|
if (!empty($aCurUser) && in_array($userUid, $aCurUser)) {
|
||||||
foreach ($aCurUser as $key => $value) {
|
|
||||||
if ($value === $userUid) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user