You are here: Foswiki>Tasks Web>Item2851 (04 Jan 2015, GeorgeClark)Edit Attach

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! smile


Implemented on Foswiki using the "ingroup" operator. See IfStatements

-- Main.GeorgeClark - 04 Jan 2015 - 23:32

ItemTemplate edit

Summary %IF%'s memberof Operator
ReportedBy TWiki:Main.AurelioAHeckert
Codebase
SVN Range TWiki-4.1, Fri, 08 Sep 2006, build 11436
AppliesTo Engine
Component IfStatement
Priority Enhancement
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r4 - 04 Jan 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy