Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Moderators  (Read 3429 times)

0 Members and 1 Guest are viewing this topic.

Alex53

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Moderators
« on: September 21, 2005, 12:32:44 pm »

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.
Logged

Nibbler

  • Guest
Re: Moderators
« Reply #1 on: September 21, 2005, 12:48:48 pm »

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

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Moderators
« Reply #2 on: September 21, 2005, 05:18:10 pm »

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
Code: [Select]
define('EDIT_PICTURES_MODE', !isset($HTTP_GET_VARS['mode']));add
Code: [Select]
define('MODERATOR_MODE', $USER_DATA['group_name']=="Moderators");


few lines below replace
Code: [Select]
if (UPLOAD_APPROVAL_MODE && !GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);with
Code: [Select]
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....
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.