coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: brandsvend on October 11, 2005, 09:35:56 PM

Title: Exclusion
Post by: brandsvend on October 11, 2005, 09:35:56 PM
I wonder if there is a hack that makes anonymous users see all galleries but NOT the user galleries... :-\\
Is this possible?
Title: Re: Exclusion
Post by: Nibbler on October 11, 2005, 09:44:54 PM
index.php,

find

if (isset($HTTP_GET_VARS['cat'])) {
    $cat = (int)$HTTP_GET_VARS['cat'];
}


change to

if (isset($HTTP_GET_VARS['cat'])) {
    $cat = (int)$HTTP_GET_VARS['cat'];
if (($cat == USER_GAL_CAT || $cat > FIRST_USER_CAT) && !USER_ID) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
Title: Re: Exclusion
Post by: brandsvend on October 11, 2005, 10:06:30 PM
COOL!

But some of the pictures are still shown in 'Random files' and 'Last additions' on the front page - could these be turned off?
Title: Re: Exclusion
Post by: Nibbler on October 11, 2005, 10:11:41 PM
You should be able to set the viewing permissions in album properties.

http://coppermine-gallery.net/demo/cpg13x/docs/index.htm#album_prop
Title: Re: Exclusion
Post by: brandsvend on October 11, 2005, 10:19:01 PM
Beautiful! Sorry about the newbie questions - everything is sweeeet now!