You are viewing the PKP Support Forum | PKP Home Wiki

definition of role_id's

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

definition of role_id's

Postby makouvlei » Wed Nov 17, 2010 3:21 am

Is there a definition anywhere of the values used as role_id's in the roles table? I don't seem to be able to find it in anywhere.

Posts: 16
Joined: Wed Nov 17, 2010 2:56 am

Re: definition of role_id's

Postby asmecher » Wed Nov 17, 2010 10:09 am

Hi makouvlei,

Grepping for ROLE_ID_... constants in the PHP code using:
Code: Select all
grep -e "define.*ROLE_ID_" `find . -name \*.php`
Code: Select all
./classes/security/Role.inc.php:define('ROLE_ID_SITE_ADMIN',      0x00000001);
./classes/security/Role.inc.php:define('ROLE_ID_JOURNAL_MANAGER',   0x00000010);
./classes/security/Role.inc.php:define('ROLE_ID_EDITOR',      0x00000100);
./classes/security/Role.inc.php:define('ROLE_ID_SECTION_EDITOR',   0x00000200);
./classes/security/Role.inc.php:define('ROLE_ID_LAYOUT_EDITOR',      0x00000300);
./classes/security/Role.inc.php:define('ROLE_ID_REVIEWER',      0x00001000);
./classes/security/Role.inc.php:define('ROLE_ID_COPYEDITOR',      0x00002000);
./classes/security/Role.inc.php:define('ROLE_ID_PROOFREADER',      0x00003000);
./classes/security/Role.inc.php:define('ROLE_ID_AUTHOR',      0x00010000);
./classes/security/Role.inc.php:define('ROLE_ID_READER',      0x00100000);
./classes/security/Role.inc.php:define('ROLE_ID_SUBSCRIPTION_MANAGER',   0x00200000);
Alec Smecher
Public Knowledge Project Team
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Return to OJS Development

Who is online

Users browsing this forum: No registered users and 1 guest