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: Berechtigungen für Alben  (Read 3747 times)

0 Members and 1 Guest are viewing this topic.

fichte_112

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Berechtigungen für Alben
« on: January 27, 2010, 05:18:34 pm »

Hallo,
wie kann man es einstellen oder modifizieren, dass  die Option „Album kann angesehen werden von“  in der Albenverwaltung nur für Administratoren sichtbar ist und von den Benutzern nicht geändert werden kann. Am besten wäre es, wenn es für Benutzer ausgeblendet ist.
fichte_112

http://fotos-fichtner.pytalhost.de/fotos.php
Logged

Αndré

  • Administrator
  • Coppermine addict
  • ****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Berechtigungen für Alben
« Reply #1 on: January 28, 2010, 08:01:35 am »

In modifyalb.php, suche
Code: [Select]
$data = array($lang_modifyalb_php['general_settings'],
    array($lang_modifyalb_php['alb_title'], 'title', 0),
    array($lang_modifyalb_php['alb_cat'], 'category', 2),
    array($captionLabel, 'description', 3),
    array($lang_modifyalb_php['alb_keyword'].$help_album_keywords, 'keyword', 0),
    array($lang_modifyalb_php['alb_thumb'], 'thumb', 4), $lang_modifyalb_php['alb_perm'],
    array($lang_modifyalb_php['can_view'], 'visibility', 5),
    array($lang_modifyalb_php['alb_password'].$help_album_password, 'alb_password', 6),
    array($lang_modifyalb_php['alb_password_hint'].$help_album_password, 'alb_password_hint', 7),
    array($lang_modifyalb_php['can_upload'].$notice1.$help_can_upload, 'uploads', 1),
    array($lang_modifyalb_php['can_post_comments'].$notice1, 'comments', 1),
    array($lang_modifyalb_php['can_rate'].$notice1, 'votes', 1),
    );
und füge danach folgendes ein
Code: [Select]
if (!GALLERY_ADMIN_MODE) {
    unset($data[7]);
}
Logged

Αndré

  • Administrator
  • Coppermine addict
  • ****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Berechtigungen für Alben
« Reply #2 on: January 28, 2010, 08:11:33 am »

Weiterhin solltest du folgendes tun.

In db_input.php, suche
Code: [Select]
$visibility = (int)$_POST['visibility'];und ersetze es durch
Code: [Select]
$visibility = GALLERY_ADMIN_MODE ? (int)$_POST['visibility'] : $USER_DATA['groups'][0];
Logged

fichte_112

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Berechtigungen für Alben
« Reply #3 on: January 28, 2010, 03:03:14 pm »

Danke für die schnelle Hilfe!
fichte_112
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 21 queries.