coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: bjk83 on April 30, 2008, 02:08:35 PM

Title: User/Album permissions
Post by: bjk83 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.
Title: Re: User/Album permissions
Post by: Nibbler on April 30, 2008, 02:49:26 PM
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;
Title: Re: User/Album permissions
Post by: rick945 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.