[pmwiki-devel] skin php question

Guillermo Calderon - INCO calderon at fing.edu.uy
Wed May 30 10:08:54 CDT 2007


The Editor wrote:
> I have a condition in my skin php I'd like to change to a specific group. ie
> 
> from:  if (CondAuth($pagename, 'edit') == true) ...
> 
> to: if (in_group @editors = true) ...
> 
> Can anyone suggest the code for this?
> 
> Cheers
> Dan

I have this code in my config.php:

$Conditions['grp'] = '$GLOBALS["AuthList"]["@".$condparm] == 1';

So, I can write something like:

(:if grp editors:) .....




More information about the pmwiki-devel mailing list