[dokuwiki] How to check authorization
- From: Oliver Geisen <oliver.geisen@xxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Mon, 10 Jul 2006 10:23:31 +0200
Hello,
is there a wiki function to check if current logged in user is member
of a specific group ?
Currently i do this everytime i need it with:
if(in_array($conf['wanted'],$USERINFO['grps'])){
// YES -> do the action
}
I think about a more flexible solution to use Lists in 'wanted'
instead of a single group.
There should be a function that checks if the current/given user is
in a list of wanted groups/users, like:
$conf['wanted'] = '@admin,user_a,user_b,@operator'
Oliver Geisen
_____________________________
Systemadministrator
Kreisboten Verlag Mühlfellner KG
82362 Weilheim i. Ob.
Tel. 0881/686-904
Fax 0881/686-74
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
Other related posts: