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: users can create new albums in all categories  (Read 3885 times)

0 Members and 1 Guest are viewing this topic.

galadrin

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
users can create new albums in all categories
« on: July 17, 2008, 01:53:52 pm »

a little hack for give the right to all the users to create new albums

in file albmgr.php :

line 345 to 346 , comment the folowing lines :
Code: [Select]
} elseif (USER_ADMIN_MODE) {
    $result = cpg_db_query("SELECT aid, title FROM {$CONFIG['TABLE_ALBUMS']} WHERE category = " . (USER_ID + FIRST_USER_CAT) . " ORDER BY pos ASC");

line 363 and 343, replace the folowing lines :
Code: [Select]
if (GALLERY_ADMIN_MODE) {by
Code: [Select]
if (USER_ADMIN_MODE) {
Logged

Nibbler

  • Guest
Re: users can create new albums in all categories
« Reply #1 on: July 17, 2008, 08:02:56 pm »

I don't see how that is supposed to work.
Logged

GerX

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: users can create new albums in all categories
« Reply #2 on: July 18, 2008, 12:21:32 pm »

Is there a hack that make it possible in a proper way? Create albums and delete his own uploads,  in all categoriesand albums for a registred user?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: users can create new albums in all categories
« Reply #3 on: July 18, 2008, 04:38:15 pm »

No. Has been asked and answered often already. Will be a feature in cpg1.5.x (not released yet, no scheduled release date, no backport of that feature planned). Butt out of this thread. The thread starter proposed a hack and even advertized for it in some other threads, yet he hasn't replied on Nibbler's question. We don't want another discussion here about the "missing feature", as it has been discussed in many, many threads already. The only thing we want in this thread are actual contributions or at least some words from the original thread starter.

@galadrin: please review and reply.
Logged

drgonzo120

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 35
Re: users can create new albums in all categories
« Reply #4 on: July 27, 2008, 05:04:22 pm »

is there a solution?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: users can create new albums in all categories
« Reply #5 on: July 28, 2008, 05:54:48 am »

No, there is no simple solution. This has been asked and answered very often already. If it would be that simple, the feature would have been added long ago.
Logged
Pages: [1]   Go Up
 

Page created in 0.033 seconds with 19 queries.