Hi,
I'm searching for something like AntonAylward tell in
Item680.
I need to know if an user is member of a group, but groups can have groups inside and it must be tested.
I'm proposing the
memberof
operator for the
%IF%
variable.
Use:
%IF{ "$'WIKINAME' memberof TWikiAdminGroup" then="How Powerful!" else="Only more one ordinary user." }%
I think it is more clear and easy.
And very useful!
Implemented on Foswiki using the "ingroup" operator. See
IfStatements
--
Main.GeorgeClark - 04 Jan 2015 - 23:32