Merged in ronald-quentaprocessmaker/processmaker/HOR-1913 (pull request #4943)
HOR-1913
This commit is contained in:
@@ -4224,8 +4224,8 @@ class Cases
|
|||||||
public function unCancelCase($appUID, $userUID)
|
public function unCancelCase($appUID, $userUID)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
global $RBAC;
|
$oUser = new \ProcessMaker\BusinessModel\User();
|
||||||
if ($RBAC->userCanAccess('PM_UNCANCELCASE') !== 1) {
|
if (!$oUser->checkPermission($userUID, 'PM_UNCANCELCASE')) {
|
||||||
throw new Exception(G::LoadTranslation('ID_YOU_DO_NOT_HAVE_PERMISSION'));
|
throw new Exception(G::LoadTranslation('ID_YOU_DO_NOT_HAVE_PERMISSION'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user