coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: frankae on January 17, 2004, 11:27:12 AM

Title: Only allow full-size viewing to specific user groups
Post by: frankae on January 17, 2004, 11:27:12 AM
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.
Title: Only allow full-size viewing to specific user groups
Post by: Joachim Müller on January 17, 2004, 11:42:48 AM
http://forum.coppermine-gallery.net/index.php?topic=338
Title: Only allow full-size viewing to specific user groups
Post by: frankae on January 17, 2004, 01:31:20 PM
unfortunately, I could not find an answer in the link you provided.

I tried using:

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?