default permissions for user albums default permissions for user 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

default permissions for user albums

Started by steve19, June 18, 2011, 01:02:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

steve19

When a user creates a new user album, by default the permissions are set to public viewing. Is there a way to make all new user albums only viewable by members of the registered group?

ΑndrĂ©

Open delete.php, find
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos, description, owner) VALUES ('$category', '$get_album_name', 'NO', '{$position}', '', '$user_id')";
and replace with
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos, description, owner, visibility) VALUES ('$category', '$get_album_name', 'NO', '{$position}', '', '$user_id', '2')";