[pmwiki-users] query authorisation group with cond-markup

Sandy pmwiki at onebit.ca
Wed Apr 18 11:38:24 CDT 2007


noskule <noskule <at> gmx.net> writes:

> 
> hi list
> Is it somehow possible to query if the loged-in user belongs to a certan 
> authorisation group?
> 
> To do something like
> 
> (:if authid  <at> admins {*$Group}.SideBar:)[[{*$Group}.SideBar?action=edit]]
> 
> thanks for any hints
> nos
> 

I don't know about "member of @group" but it is possible to do based on current
authorization level.

1. If the user has an ID, personalize the site:

(:if authid:)
%sidehead%User: {$AuthId}

2. Display different links depending on what he can do:
(:if auth edit:)
[[{*$FullName}?action=edit|Edit]]\\
(:if auth admin:)
[[{*$FullName}?action=attr|Page Password]]\\
[[Site.Site|Site Admin]]
(:if:)

Hope this helps!

Sandy




More information about the pmwiki-users mailing list