This commit is contained in:
Roly Rudy Gutierrez Pinto
2017-10-19 09:46:48 -04:00
parent 958e1255a8
commit 3b6e2416ef
3 changed files with 10 additions and 3 deletions

View File

@@ -381,7 +381,7 @@ class ProcessPermissions
{
$usr_uid = trim($usr_uid);
if ($usr_uid == '') {
throw (new \Exception(\G::LoadTranslation("ID_USER_NOT_EXIST", array('usr_uid',''))));
throw (new \Exception(\G::LoadTranslation("ID_SELECT_USER_OR_GROUP")));
}
$oUsers = new \Users();
if (!($oUsers->userExists($usr_uid))) {
@@ -403,7 +403,7 @@ class ProcessPermissions
{
$grp_uid = trim($grp_uid);
if ($grp_uid == '') {
throw (new \Exception(\G::LoadTranslation("ID_GROUP_NOT_EXIST", array('grp_uid',''))));
throw (new \Exception(\G::LoadTranslation("ID_SELECT_USER_OR_GROUP")));
}
$oGroup = new \Groupwf();
if (!($oGroup->GroupwfExists($grp_uid))) {