User/Album permissions User/Album permissions
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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.