Merge remote-tracking branch 'origin/feature/HOR-3559' into bugfix/HOR-3467
This commit is contained in:
@@ -25,6 +25,9 @@
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
use ProcessMaker\Exception\RBACException;
|
||||
|
||||
/**
|
||||
* File: $Id$
|
||||
*
|
||||
@@ -70,6 +73,7 @@ class RBAC
|
||||
public $singleSignOn = false;
|
||||
|
||||
private static $instance = null;
|
||||
public $authorizedActions = array();
|
||||
|
||||
public function __construct ()
|
||||
{
|
||||
@@ -148,6 +152,10 @@ class RBAC
|
||||
'newSite.php' => array(
|
||||
'newSite.php' => array('PM_SETUP_ADVANCE')
|
||||
),
|
||||
'emailsAjax.php' => array(
|
||||
'MessageList' => array('PM_SETUP', 'PM_SETUP_LOGS'),
|
||||
'updateStatusMessage' => array('PM_SETUP', 'PM_SETUP_LOGS'),
|
||||
),
|
||||
'processCategory_Ajax.php' => array(
|
||||
'processCategoryList' => array('PM_SETUP', 'PM_SETUP_PROCESS_CATEGORIES'),
|
||||
'updatePageSize' => array('PM_SETUP', 'PM_SETUP_PROCESS_CATEGORIES'),
|
||||
@@ -1554,8 +1562,7 @@ class RBAC
|
||||
}
|
||||
|
||||
if (!$access) {
|
||||
G::header('Location: /errors/error403.php');
|
||||
die();
|
||||
throw new RBACException('ID_ACCESS_DENIED', 403);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user