Moderators Moderators
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Moderators

Started by Alex53, September 21, 2005, 12:32:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Alex53

I would like to be able to create users who can approve uploads, but that dont have full access to the configuration, etc. like the admin has, so it would be a kind of Moderator.

I use version 132, please advise whether this is possible.

Nibbler

Not currently possible, but may be in the future. Search the board for previous discussions.

Stramm

tell me if it works... create a group called 'Moderators' (case sensitive)... move a user into that group. This user has to be in (user) admin mode then let him call domain/cpgdir/editpics.php?mode=upload_approval (same as for admin... just admin has that link in the admin menu, the moderator not... you can add it if you want...)

now open editpics.php
after
define('EDIT_PICTURES_MODE', !isset($HTTP_GET_VARS['mode']));
add
define('MODERATOR_MODE', $USER_DATA['group_name']=="Moderators");



few lines below replace
if (UPLOAD_APPROVAL_MODE && !GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
with
if (UPLOAD_APPROVAL_MODE && ((!MODERATOR_MODE) && (!GALLERY_ADMIN_MODE))) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);


this should work but I haven't tested it....