|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| __construct ($request, $roles, $operations, $stageId, $message='user.authorization.assignedStageRoleBasedAccessDenied', $allRoles=false) | |
| effect () | |
Public Member Functions inherited from RoleBasedHandlerOperationPolicy | |
| __construct ($request, $roles, $operations, $message='user.authorization.roleBasedAccessDenied', $allRoles=false) | |
| _checkUserRoleAssignment ($userRoles) | |
Public Member Functions inherited from HandlerOperationPolicy | |
| __construct ($request, $operations, $message=null) | |
| _checkOperationWhitelist () | |
| getOperations () | |
| & | getRequest () |
Public Member Functions inherited from AuthorizationPolicy | |
| __construct ($message=null) | |
| addAuthorizedContextObject ($assocType, &$authorizedObject) | |
| applies () | |
| & | getAdvice ($adviceType) |
| & | getAuthorizedContext () |
| & | getAuthorizedContextObject ($assocType) |
| hasAdvice ($adviceType) | |
| hasAuthorizedContextObject ($assocType) | |
| setAdvice ($adviceType, &$adviceContent) | |
| setAuthorizedContext (&$authorizedContext) | |
Data Fields | |
| $_stageId | |
Data Fields inherited from RoleBasedHandlerOperationPolicy | |
| $_allRoles | |
| $_roles = array() | |
Data Fields inherited from HandlerOperationPolicy | |
| $_operations = array() | |
| $_request | |
Data Fields inherited from AuthorizationPolicy | |
| $_advice = array() | |
| $_authorizedContext = array() | |
Class to control access to handler operations based on assigned role(s) in a submission's workflow stage.
Definition at line 18 of file AssignedStageRoleHandlerOperationPolicy.inc.php.
| AssignedStageRoleHandlerOperationPolicy::__construct | ( | $request, | |
| $roles, | |||
| $operations, | |||
| $stageId, | |||
$message = 'user.authorization.assignedStageRoleBasedAccessDenied', |
|||
$allRoles = false |
|||
| ) |
Constructor
| $request | PKPRequest |
| $roles | array|integer either a single role ID or an array of role ids |
| $operations | array|string either a single operation or a list of operations that this policy is targeting. |
| $stageId | int The stage ID to check for assigned roles |
| $message | string a message to be displayed if the authorization fails |
| $allRoles | boolean whether all roles must match ("all of") or whether it is enough for only one role to match ("any of"). Default: false ("any of") |
Definition at line 37 of file AssignedStageRoleHandlerOperationPolicy.inc.php.
| AssignedStageRoleHandlerOperationPolicy::effect | ( | ) |
Reimplemented from RoleBasedHandlerOperationPolicy.
Definition at line 51 of file AssignedStageRoleHandlerOperationPolicy.inc.php.
References HandlerOperationPolicy\_checkOperationWhitelist(), RoleBasedHandlerOperationPolicy\_checkUserRoleAssignment(), and AuthorizationPolicy\getAuthorizedContextObject().
| int AssignedStageRoleHandlerOperationPolicy::$_stageId |
Definition at line 24 of file AssignedStageRoleHandlerOperationPolicy.inc.php.