OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Unenroll more than one user at once

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

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.

Unenroll more than one user at once

Postby piotreba » Mon Nov 11, 2013 9:16 am

Hello,

Is there any way to unenroll more than one user from particular role at once? E.g. to unenroll all readers.



Thanks,
Peter
piotreba
 
Posts: 163
Joined: Mon Dec 13, 2010 3:29 pm

Re: Unenroll more than one user at once

Postby asmecher » Mon Nov 11, 2013 12:11 pm

Hi Peter,

The quickest way to do this is via the database, directly in the roles table, by deleting entries with role_id corresponding to the value of the constant called ROLE_ID_REVIEWER.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Unenroll more than one user at once

Postby piotreba » Wed Nov 27, 2013 2:06 pm

Which role_id value from the roles table corresponds to the reader (not reviewer) role?

edited: I suspect it is 1048576?
piotreba
 
Posts: 163
Joined: Mon Dec 13, 2010 3:29 pm

Re: Unenroll more than one user at once

Postby asmecher » Wed Nov 27, 2013 2:20 pm

Hi piotreba,

Roles are defined in classes/security/Role.inc.php:
Code: Select all
/** ID codes for all user roles */
define('ROLE_ID_SITE_ADMIN',            0x00000001);
define('ROLE_ID_JOURNAL_MANAGER',       0x00000010);
define('ROLE_ID_EDITOR',                0x00000100);
define('ROLE_ID_SECTION_EDITOR',        0x00000200);
define('ROLE_ID_LAYOUT_EDITOR',         0x00000300);
define('ROLE_ID_REVIEWER',              0x00001000);
define('ROLE_ID_COPYEDITOR',            0x00002000);
define('ROLE_ID_PROOFREADER',           0x00003000);
define('ROLE_ID_AUTHOR',                0x00010000);
define('ROLE_ID_READER',                0x00100000);
define('ROLE_ID_SUBSCRIPTION_MANAGER',  0x00200000);
These correspond to...
  • ROLE_ID_SITE_ADMIN: 1
  • ROLE_ID_JOURNAL_MANAGER: 16
  • ROLE_ID_EDITOR: 256
  • ROLE_ID_SECTION_EDITOR: 512
  • ROLE_ID_LAYOUT_EDITOR: 768
  • ROLE_ID_REVIEWER: 4096
  • ROLE_ID_COPYEDITOR: 8192
  • ROLE_ID_PROOFREADER: 12288
  • ROLE_ID_AUTHOR: 65536
  • ROLE_ID_READER: 1048576
  • ROLE_ID_SUBSCRIPTION_MANAGER: 2097152
Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron