Forums / Developer / Anonymous user (role) permissions

Anonymous user (role) permissions

Author Message

Glenn MacGregor

Wednesday 28 April 2004 6:39:50 am

Hi All,

Sorry to keep bugging you...One last thing. I am trying to update the Anonymous role to
not allow access to certain sections of my site. Those sections need to be accessed by users who login, like my support section.

The Anonymous Role looks like this:

user login *

content read Class( Folder , Info page , Info page , Link , Link , File , File , Comment , Comment , Article , Article , Image , Image , Forum , Forum , Forum message , Forum message , Product , Product , Product review , Product review )

content read Class( Front Page , HSNProduct )
callme * *
content read Section( Standard section , Service Section , Products section , Support section , Partner section , Docs Section , Support Techsupport Section )

The last one is new, The only section not listed is the "Support Download Section". When I browse my site, without logging in, I can still get there with no problem.

Am I doing something wrong here?

Thanks
Glenn

Sebastian Sprenger

Thursday 29 April 2004 5:47:19 am

What about the limitation
user login SiteAccess ([whatever you want])
?
Can you limit access in this way?

Sebastian

Glenn MacGregor

Thursday 29 April 2004 5:53:25 am

Not sure that will work because I only want part of the site to protected.

Is there a way in the templates to see if the user is logged in? If so I can write the templates to check that for the certain pages (sections) I want to protect.

Thanks
Glenn

Paul Forsyth

Thursday 29 April 2004 5:57:28 am

Yip:

{section show=$current_user.is_logged_in}
Hey!
{/section}

paul

--
http://www.visionwt.com