Changing the Default User Album Permissions Changing the Default User Album Permissions
 

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

Changing the Default User Album Permissions

Started by FutureBeast, April 26, 2012, 04:47:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

FutureBeast

Hi,

I am new here. I just installed coppermine and I am having trouble setting the default view permissions on user galleries to me only. Does anyone know how to do this or what file I should be modifying?

Any help would be appreciated.

Thanks!

Αndré

#1
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', '".(FIRST_USER_CAT+USER_ID)."')";
(not tested).

FutureBeast

Thanks so much for getting back to mw!. Unfortunately, I entered this code and it caused my installation to idle endlessly when I tried to create a new album. I think that we are almost there however. Do youknow what may be wrong?


Αndré

I just updated my above instruction (I forgot some brackets).

FutureBeast

UPDATE: This works perfectly. You are a life saver. Thank you so much!!!

Αndré

Please
Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
tag your answer as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.