HOR-3841
This commit is contained in:
@@ -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']);
|
||||||
|
|||||||
Reference in New Issue
Block a user