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: User/Album permissions  (Read 3585 times)

0 Members and 1 Guest are viewing this topic.

bjk83

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
User/Album permissions
« on: April 30, 2008, 02:08:35 pm »

Hi, Im New to all this stuff and am wondering the following....
I have created users with private albums, all works perfectly, i know want to create a user with full viewing rights of all folders, but not the administrator stuff. I am using 1.4.16. is this possible.?
I have searched previous threads and 1 thing seemed to be what i was after but i cant seem to do it. I need simple to understand info please.
Thanks for your time.
Logged

Nibbler

  • Guest
Re: User/Album permissions
« Reply #1 on: April 30, 2008, 02:49:26 pm »

You can try hacking it in. include/functions.inc.php function get_private_album_set()

find

Code: [Select]
if (GALLERY_ADMIN_MODE) return;
after that, add your new super user id

Code: [Select]
// special user 123 can see all albums
if (USER_ID == 123) return;
Logged

rick945

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: User/Album permissions
« Reply #2 on: April 08, 2009, 02:14:28 am »

Thank you sir, this help me in my question about "User Group", i just want to clarify if its okay if i will just enumerate the "user_id) of user that i want to give that privilege? like this:

        if (GALLERY_ADMIN_MODE) return;
// special user 123 can see all albums
   if (USER_ID == 5) return;
   if (USER_ID == 6) return;
   if (USER_ID == 8) return;

I tried this and it works, i just don't know if there will be effect in other code/function.

« Last Edit: April 08, 2009, 08:31:50 am by Joachim Müller »
Logged
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 19 queries.