Re: Check for admin panels

"Chris" <[email protected]> Thu, 13 Jan 2005 07:12:59 +0000 (UTC)
Newsgroups gmane.comp.cms.xaraya.ui
Organization Xaraya
Message-ID <[email protected]>
mikespub <[email protected]> wrote in =
message<[email protected]>

> Chris wrote:
> > ...
>  > Hi =
MIke,
> >=20
> > 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 :-)
> =
>=20
> > 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?
> >=20
> > Best regards
> >=20
> > Chris
> >=20
> Depends what =
criteria you want to use, to decide whether to show those
> links in the =
menu or not.
> In general, you should try to use the most relevant =
security check (e.g.
> if it's a link to some module admin function, use =
the security check for
> that module function), so that if later you =
re-organise the privileges
> for your site (e.g. with sub-admins for =
certain module functions), the
> links will still be shown to the right =
people.
> But if checking for AdminPanel privileges is close enough to =
what you
> want, that's fine too :-)
> Mike.
Thanks Mike,

Based on your =
comments, I think the method I'm using suits my purposes just fine as none =
of them are module links. Mainly links to a few static pages I've set up =
(in the base module) to test different block layouts. I know I could set =
the menu up and add privs for it just for me, but the sec mask suits my =
purpose just fine. Thanks for the input, it's given me food for thought =
where other areas are concerned.

Regards

Chris