| Server IP : 195.134.90.114 / Your IP : 216.73.216.86 Web Server : Apache/2.4.58 System : Linux nepub 6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/public_html/lib/pkp/classes/security/ |
Upload File : |
<?php
/**
* @file classes/security/Role.inc.php
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class Role
* @ingroup security
* @see RoleDAO
*
* @brief Describes generic PKP user roles within the system and the associated permissions.
*/
/** ID codes and paths for all default roles */
define('ROLE_ID_MANAGER', 0x00000010);
define('ROLE_ID_SITE_ADMIN', 0x00000001);
define('ROLE_ID_SUB_EDITOR', 0x00000011);
define('ROLE_ID_AUTHOR', 0x00010000);
define('ROLE_ID_REVIEWER', 0x00001000);
define('ROLE_ID_ASSISTANT', 0x00001001);
define('ROLE_ID_READER', 0x00100000);
define('ROLE_ID_SUBSCRIPTION_MANAGER', 0x00200000);
class Role extends DataObject {
/**
* Constructor.
* @param $roleId for this role. Default to null for backwards
* compatibility
*/
function __construct($roleId = null) {
parent::__construct();
$this->setId($roleId);
}
//
// Get/set methods
//
/**
* Get role ID of this role.
* @return int
*/
function getRoleId() {
return $this->getId();
}
/**
* Set role ID of this role.
* @param $roleId int
*/
function setRoleId($roleId) {
return $this->setId($roleId);
}
}