This commit is contained in:
Roly Rudy Gutierrez Pinto
2017-10-19 15:54:42 -04:00
parent 11f01b8453
commit 4ec3e2a90a

View File

@@ -5,6 +5,7 @@ use Behat\Behat\Exception\Exception;
use \G; use \G;
use \Criteria; use \Criteria;
use \ObjectPermissionPeer; use \ObjectPermissionPeer;
use \Exception as StandardException;
/** /**
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com> * @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
@@ -224,8 +225,8 @@ class ProcessPermissions
if ($opUid != '') { if ($opUid != '') {
$opUid = $this->validateOpUid($opUid); $opUid = $this->validateOpUid($opUid);
} }
if (empty($data['USR_UID']) || $data['USR_UID'] === "null") { if (empty($data['USR_UID']) || (isset($data['USR_UID']) && $data['USR_UID'] === "null")) {
throw (new \Exception(\G::LoadTranslation("ID_SELECT_USER_OR_GROUP"))); throw (new StandardException(G::LoadTranslation("ID_SELECT_USER_OR_GROUP")));
} }
if ($data['OP_USER_RELATION'] == "1") { if ($data['OP_USER_RELATION'] == "1") {
$this->validateUsrUid($data['USR_UID']); $this->validateUsrUid($data['USR_UID']);