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: Only allow full-size viewing to specific user groups  (Read 2647 times)

0 Members and 1 Guest are viewing this topic.

frankae

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Only allow full-size viewing to specific user groups
« on: January 17, 2004, 11:27:12 am »

Code: [Select]
if (!USER_ID) cpg_die(ERROR, 'Your message to invite visitors to register to see the big pic', __FILE__, __LINE__);

is given somewhere else in the forum to allow only registered users to view full-size pictures. I would like to know how to only allow users of specific user groups to do so.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

frankae

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Only allow full-size viewing to specific user groups
« Reply #2 on: January 17, 2004, 01:31:20 pm »

unfortunately, I could not find an answer in the link you provided.

I tried using:

Code: [Select]
if ($USER_GROUP != 'Known Users' or 'Administrators') cpg_die(ERROR, 'You need to have at least Known User status to see the big picture.', __FILE__, __LINE__);

and I do have both of these group names in effect. The result is that the error is thrown for everyone. What am I doing wrong?
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 14 queries.