OJS OCS OMP OHS

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
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a technical support question, try the OJS Technical Support subforum.

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.

Thanks
makouvlei
 
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`
...gives...
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);
Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8419
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