Fix CR
This commit is contained in:
davidcallizaya
2017-10-05 15:01:09 -04:00
parent 7d99f1e69e
commit 2a81bba175
5 changed files with 14 additions and 59 deletions

View File

@@ -72,7 +72,7 @@ class WsBase
$RBAC->loadUserRolePermission($RBAC->sSystem, $uid);
$res = $RBAC->userCanAccess("PM_LOGIN");
if ($res != 1 && $uid!== RBAC::GUEST_USER_UID) {
if ($res != 1 && $uid !== RBAC::GUEST_USER_UID) {
$wsResponse = new WsResponse(2, G::loadTranslation('ID_USER_HAVENT_RIGHTS_SYSTEM'));
throw (new Exception(serialize($wsResponse)));
}