HOR-3286
This commit is contained in:
@@ -94,8 +94,23 @@ class RBAC
|
|||||||
'usersList' => array('PM_USERS'),
|
'usersList' => array('PM_USERS'),
|
||||||
'updatePageSize' => array(),
|
'updatePageSize' => array(),
|
||||||
'summaryUserData' => array('PM_USERS'),
|
'summaryUserData' => array('PM_USERS'),
|
||||||
'verifyIfUserAssignedAsSupervisor' => array('PM_USERS'),
|
'verifyIfUserAssignedAsSupervisor' => array('PM_USERS')
|
||||||
|
),
|
||||||
|
'skin_Ajax.php' => array(
|
||||||
|
'updatePageSize' => array(),
|
||||||
|
'skinList' => array('PM_SETUP_SKIN'),
|
||||||
|
'newSkin' => array('PM_SETUP_SKIN'),
|
||||||
|
'importSkin' => array('PM_SETUP_SKIN'),
|
||||||
|
'exportSkin' => array('PM_SETUP_SKIN'),
|
||||||
|
'deleteSkin' => array('PM_SETUP_SKIN'),
|
||||||
|
'addTarFolder' => array('PM_SETUP_SKIN'),
|
||||||
|
'copy_skin_folder' => array('PM_SETUP_SKIN'),
|
||||||
|
'deleteSkin' => array('PM_SETUP_SKIN')
|
||||||
|
),
|
||||||
|
'processes_DownloadFile.php' => array(
|
||||||
|
'downloadFileHash' => array('PM_FACTORY')
|
||||||
)
|
)
|
||||||
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
//$RBAC->allows(basename(__FILE__), 'downloadFileHash');
|
$RBAC->allows(basename(__FILE__), 'downloadFileHash');
|
||||||
|
|
||||||
if (!isset($_GET["file_hash"])) {
|
if (!isset($_GET["file_hash"])) {
|
||||||
throw new Exception("Invalid Request, param 'file_hash' was not sent.");
|
throw new Exception("Invalid Request, param 'file_hash' was not sent.");
|
||||||
|
|||||||
@@ -21,9 +21,9 @@ if (in_array( $_REQUEST['action'], $restrictedFunctions )) {
|
|||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
$functionName = $_REQUEST['action'];error_log($functionName);
|
$functionName = $_REQUEST['action'];
|
||||||
$functionParams = isset( $_REQUEST['params'] ) ? $_REQUEST['params'] : array ();
|
$functionParams = isset( $_REQUEST['params'] ) ? $_REQUEST['params'] : array ();
|
||||||
//$RBAC->allows(basename(__FILE__), $functionName);
|
$RBAC->allows(basename(__FILE__), $functionName);
|
||||||
$functionName();
|
$functionName();
|
||||||
|
|
||||||
function updatePageSize ()
|
function updatePageSize ()
|
||||||
|
|||||||
Reference in New Issue
Block a user