coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: DefenceTalk.com on June 02, 2004, 03:15:26 AM

Title: [Solved]: Default permissions for newly created albums
Post by: DefenceTalk.com on June 02, 2004, 03:15:26 AM
Hi,

Anyway to change default permissions for newly created albums? Currently its set to NO so if you create say 100 albums, you have to manually change it through the gallery admin config or through one of the database tools.

Anyway to change the default NO to YES???

Thanks
Title: Re: Default permissions for newly created albums
Post by: Nibbler on June 02, 2004, 08:00:11 PM
For upload permission you will need to change delete.php.


$query = "INSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos) VALUES ('$category', '" . addslashes($op['album_nm']) . "', 'NO',  '{$op['album_sort']}')";


Just change the NO to YES
Title: Re: Default permissions for newly created albums
Post by: DefenceTalk.com on June 04, 2004, 06:07:14 AM
Thank You.