Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($authorizedContext, $user) | |
getAuthorizedContextObject ($assocType) | |
getCanCreate ($stageId) | |
getCanDelete ($queryId) | |
getCanEdit ($queryId) | |
getCanListAll ($stageId) | |
getCanOpenClose ($query) | |
getCanOrder ($stageId) | |
Data Fields | |
$_authorizedContext | |
$_user | |
Protected Member Functions | |
hasStageRole ($stageId, $roles) | |
isAssigned ($userId, $queryId) | |
Implements access rules for queries. Permissions are intended as follows (per UI/UX group, 2015-12-01) Added permissions for Reviewers, 2017-11-05.
ROLE TASK MANAGER SUB EDITOR ASSISTANT AUTHOR REVIEWER Create Q Yes Yes Yes Yes Yes Edit Q All All If Creator If Creator if Creator List/View All All Assigned Assigned Assigned Open/close All All Assigned No No Delete Q All All If Blank If Blank If Blank
Definition at line 26 of file QueriesAccessHelper.inc.php.
QueriesAccessHelper::__construct | ( | $authorizedContext, | |
$user | |||
) |
Constructor
$authorizedContext | array |
$user | User |
Definition at line 44 of file QueriesAccessHelper.inc.php.
QueriesAccessHelper::getAuthorizedContextObject | ( | $assocType | ) |
Retrieve authorized context objects from the authorized context.
$assocType | integer any of the ASSOC_TYPE_* constants |
Definition at line 54 of file QueriesAccessHelper.inc.php.
Referenced by hasStageRole().
QueriesAccessHelper::getCanCreate | ( | $stageId | ) |
Determine whether the user can create queries.
$stageId | int |
Definition at line 88 of file QueriesAccessHelper.inc.php.
References hasStageRole().
QueriesAccessHelper::getCanDelete | ( | $queryId | ) |
Determine whether the current user can delete a query.
$queryId | int Query ID |
Definition at line 119 of file QueriesAccessHelper.inc.php.
References DAORegistry\getDAO(), and hasStageRole().
QueriesAccessHelper::getCanEdit | ( | $queryId | ) |
Determine whether the current user can edit a query.
$queryId | int Query ID |
Definition at line 97 of file QueriesAccessHelper.inc.php.
References DAORegistry\getDAO(), and hasStageRole().
QueriesAccessHelper::getCanListAll | ( | $stageId | ) |
Determine whether the current user can list all queries on the submission
$stageId | int The stage ID to load discussions for |
Definition at line 141 of file QueriesAccessHelper.inc.php.
References hasStageRole().
QueriesAccessHelper::getCanOpenClose | ( | $query | ) |
Determine whether the current user can open/close a query.
$query | Query |
Definition at line 63 of file QueriesAccessHelper.inc.php.
References hasStageRole(), and isAssigned().
QueriesAccessHelper::getCanOrder | ( | $stageId | ) |
Determine whether the user can re-order the queries.
$stageId | int |
Definition at line 79 of file QueriesAccessHelper.inc.php.
References hasStageRole().
|
protected |
Determine whether the current user has role(s) in the current workflow stage
$stageId | int |
$roles | array [ROLE_ID_...] |
Definition at line 163 of file QueriesAccessHelper.inc.php.
References getAuthorizedContextObject().
Referenced by getCanCreate(), getCanDelete(), getCanEdit(), getCanListAll(), getCanOpenClose(), and getCanOrder().
|
protected |
Determine whether the current user is assigned to the current query.
Definition at line 151 of file QueriesAccessHelper.inc.php.
References DAORegistry\getDAO().
Referenced by getCanOpenClose().
array QueriesAccessHelper::$_authorizedContext |
Definition at line 31 of file QueriesAccessHelper.inc.php.
User QueriesAccessHelper::$_user |
Definition at line 37 of file QueriesAccessHelper.inc.php.