forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 permissions => Topic started by: b0s on September 04, 2014, 12:49:56 pm

Title: Allow public user to create albums
Post 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!
Title: Re: Allow public user to create albums
Post by: ron4mac on September 04, 2014, 10:58:13 pm
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.
Title: Re: Allow public user to create albums
Post by: b0s on September 05, 2014, 11:36:29 am
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?
Title: Re: Allow public user to create albums
Post by: ron4mac on September 05, 2014, 12:28:56 pm
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.
Title: Re: Allow public user to create albums
Post by: b0s on September 10, 2014, 10:28:22 am
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.
Title: Re: Allow public user to create albums
Post by: Αndré on September 10, 2014, 11:45:00 am
Please share your modifications so we can test ourselves.