up observations

This commit is contained in:
qronald
2017-02-08 08:14:05 -04:00
parent c2d263f99d
commit 580b0958b2

View File

@@ -43,12 +43,8 @@ class Light extends Api
//Check if the user has the case
$appDelegation = new \AppDelegation();
$aCurUser = $appDelegation->getCurrentUsers($applicationUid, $delIndex);
if (!empty($aCurUser)) {
foreach ($aCurUser as $key => $value) {
if ($value === $userUid) {
return true;
}
}
if (!empty($aCurUser) && in_array($userUid, $aCurUser)) {
return true;
}
return false;
break;