User/Album permissions User/Album permissions
 

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

User/Album permissions

Started by bjk83, April 30, 2008, 02:08:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bjk83

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.

Nibbler

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

find

if (GALLERY_ADMIN_MODE) return;

after that, add your new super user id


// special user 123 can see all albums
if (USER_ID == 123) return;

rick945

#2
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.