forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 permissions => Topic started by: b0s on September 04, 2014, 12:49:56 pm
-
Hi
I have a small setup in an friendly internal only network and would like to go "everyone can access everything".
I have managed to let public users upload and view existing albums, but I would also like them to be able to add new (public)albums. Is this possible?
Also public users get "You don't have permission to access this page." when they try to "edit files" of an album.
Thank you in advance!
-
If you are comfortable doing it, you could modify the core file bridge/udb_base.inc.php
Around line 126, modify the function, load_guest_data(), to accommodate your goals.
-
Thank you! This works when I set $USER_DATA['user_id'] = 1; and set a user name. But the albums still show up under admin user... any ideas about that?
-
Don't use the admin user id. Except for the concept of 'public' albums, it would seem to fulfill your needs if you create a global user account (perhaps with the username 'public'), and then set $USER_DATA['user_id'] to the id number for that global account.
-
Thats the thing... I am not using admin user. I am using another user under $USER_DATA['user_id'], but the albums are still created under HOME > Category > admin.
-
Please share your modifications so we can test ourselves.