|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct ($roleIds, $stageId=null, $allowRecommendOnly=true) | |
| effect () | |
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) | |
Additional Inherited Members | |
Data Fields inherited from AuthorizationPolicy | |
| $_advice = array() | |
| $_authorizedContext = array() | |
Class to check if the user has an assigned role on a specific submission stage. Optionally deny authorization if that stage assignment is a "recommend only" assignment.
Definition at line 19 of file StageRolePolicy.inc.php.
| StageRolePolicy::__construct | ( | $roleIds, | |
$stageId = null, |
|||
$allowRecommendOnly = true |
|||
| ) |
Constructor
| array | $roleIds | The roles required to be authorized |
| int | $stageId | The stage the role assignment is required on to be authorized. Leave this null to check against the submission's currently active stage. |
| boolean | $allowRecommendOnly | Authorize the user even if the stage assignment is a "recommend only" assignment. Default allows "recommend only" assignments to pass authorization. |
Definition at line 47 of file StageRolePolicy.inc.php.
References AppLocale\requireComponents().
| StageRolePolicy::effect | ( | ) |
Reimplemented from AuthorizationPolicy.
Definition at line 61 of file StageRolePolicy.inc.php.
References PKPApplication\get(), AuthorizationPolicy\getAuthorizedContextObject(), and DAORegistry\getDAO().