Re: Check for admin panels
"Chris" <[email protected]> Mon, 10 Jan 2005 12:29:13 +0000 (UTC)
| Newsgroups | gmane.comp.cms.xaraya.ui |
|---|---|
| Organization | Xaraya |
| Message-ID | <[email protected]> |
mikespub <[email protected]> wrote in = message<[email protected]> > Chris wrote: > > David Dyess II = <[email protected]> wrote in > > = message<[email protected]> ... > >>=20 > >> <xar:sec = mask=3D"AdminPanel" catch=3D"false"> something here </xar:sec> > >>=20 > > = Thanks for that David, new it was something like that (I had it as > > = XarAdminPanels.) Are these documented somewhere? If not, they should > > = be. > >=20 > > Again, many thanks. > >=20 > > Chris > >=20 > 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. Hi MIke, You may be = right, it's just I know that I can achieve my aim using this method. If = there's a better way please share :-) All the check is for in my template = is to decide whether to display a couple of extra links in my menu block, = which already changes based on whether a user is logged in. Checking for = admin panels lets me do this simply. Is there another/better way to = achieve this? Best regards Chris