forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 permissions => Topic started by: steve19 on June 18, 2011, 01:02:18 am

Title: default permissions for user albums
Post by: steve19 on June 18, 2011, 01:02:18 am
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?
Title: Re: default permissions for user albums
Post by: Αndré on June 22, 2011, 11:52:59 am
Open delete.php, find
Code: [Select]
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos, description, owner) VALUES ('$category', '$get_album_name', 'NO', '{$position}', '', '$user_id')";and replace with
Code: [Select]
$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos, description, owner, visibility) VALUES ('$category', '$get_album_name', 'NO', '{$position}', '', '$user_id', '2')";