Advanced search  

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]

Pages: [1]   Go Down

Author Topic: default permissions for user albums  (Read 4266 times)

0 Members and 1 Guest are viewing this topic.

steve19

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
default permissions for user albums
« 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?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: default permissions for user albums
« Reply #1 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')";
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.