PMCORE-3874

This commit is contained in:
Paula.Quispe
2022-06-27 09:00:40 -04:00
parent 13b8b74a44
commit 2eccb8c45d

View File

@@ -26,7 +26,7 @@ class Group extends Api
$user = new User();
$usrUid = $this->getUserId();
// Review the permissions roles to access the API
if (!$user->checkPermission($usrUid, "PM_USERS") || !$user->checkPermission($usrUid, "PM_FACTORY")) {
if (!$user->checkPermission($usrUid, "PM_USERS") && !$user->checkPermission($usrUid, "PM_FACTORY")) {
throw new Exception(G::LoadTranslation("ID_USER_NOT_HAVE_PERMISSION", [$usrUid]));
}
} catch (Exception $e) {