Re: Check for admin panels

mikespub <[email protected]> Sun, 09 Jan 2005 12:23:27 +0100
Newsgroups gmane.comp.cms.xaraya.ui
Organization Xaraya
Message-ID <[email protected]>
Chris wrote:
> David Dyess II <[email protected]> wrote in
> message<[email protected]> ...
>> 
>> <xar:sec mask="AdminPanel" catch="false"> something here </xar:sec>
>> 
> Thanks for that David, new it was something like that (I had it as
> XarAdminPanels.) Are these documented somewhere? If not,  they should
> be.
> 
> Again, many thanks.
> 
> Chris
> 
The security mask (and instance) that applies can be found in the
security check :

if (!xarSecurityCheck('AdminPanel', ...)) {return;}

I'm not sure why you'd want to check access to the adminpanels block
in a template again though, since it already returns nothing when
the visitor doesn't have the right to view it...

Just a thought,

Mike.