8,849
edits
Changes
InRole
,no edit summary
*'''Do not encapsulate the whole syntax''' – This syntax always returns a value, either true or false which mostly would not cause any problems for example in [[sslogic]] or visibility conditions. However, encapsulation of the syntax will return a string which is useless if not equaled to another string.
*'''Do not encapsulate the role name''' – This is looping the role names in the instance and tries to match what is in the brackets. Use the exact role name without encapsulating.
{|
|@me.inRole(''rolename1'' OR ''rolename2'')@
|}
''For multiple role names use: @me.inRole(''rolename1'')@ OR @me.inRole(''rolename2'')@