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: [Solved]: Default permissions for newly created albums  (Read 3418 times)

0 Members and 1 Guest are viewing this topic.

DefenceTalk.com

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
[Solved]: Default permissions for newly created albums
« 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
« Last Edit: June 04, 2004, 07:35:48 am by GauGau »
Logged
(http://www.defencetalk.com/pictures/signature_cpg.php)

Nibbler

  • Guest
Re: Default permissions for newly created albums
« Reply #1 on: June 02, 2004, 08:00:11 pm »

For upload permission you will need to change delete.php.

Code: [Select]
$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
Logged

DefenceTalk.com

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
Re: Default permissions for newly created albums
« Reply #2 on: June 04, 2004, 06:07:14 am »

Thank You.
Logged
(http://www.defencetalk.com/pictures/signature_cpg.php)
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 18 queries.