Allow public user to create albums Allow public user to create albums
 

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

Allow public user to create albums

Started by b0s, September 04, 2014, 12:49:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

b0s

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!

ron4mac

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.

b0s

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?

ron4mac

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.

b0s

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.

ΑndrĂ©

Please share your modifications so we can test ourselves.