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
This forum is meant for general questions about the usability of OJS from an everyday user's perspective: journal managers, authors, and editors are welcome to post questions here, as are librarians and other support staff. We welcome general questions about the role of OJS and how the workflow works, as well as specific function- or user-related questions.

What to do if you have general, workflow or usability questions about OJS:

1. Read the documentation. We've written documentation to cover from OJS basics to system administration and code development, and we encourage you to read it.

2. take a look at the tutorials. We will continue to add tutorials covering OJS basics as time goes on.

3. Post a question. Questions are always welcome here, but if it's a technical question you should probably post to the OJS Technical Support subforum; if you have a development question, try the OJS Development subforum.

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: 157
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: 8610
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: 157
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: 8610
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