This commit is contained in:
Ronald Q
2016-09-21 15:36:59 -04:00
parent bb8f804d8d
commit 8f5a8af4a8

View File

@@ -4224,8 +4224,8 @@ class Cases
public function unCancelCase($appUID, $userUID)
{
try {
global $RBAC;
if ($RBAC->userCanAccess('PM_UNCANCELCASE') !== 1) {
$oUser = new \ProcessMaker\BusinessModel\User();
if (!$oUser->checkPermission($userUID, 'PM_UNCANCELCASE')) {
throw new Exception(G::LoadTranslation('ID_YOU_DO_NOT_HAVE_PERMISSION'));
}