Changes

Jump to: navigation, search

InRole

21 bytes added, 14:35, 24 June 2013
no edit summary
This syntax can be used on [[submit logic]], [[visibility conditionconditions]], [[browser script scripts]] or any other role -specific [[validation]]. It will always return a value, either true or false.
<pre>@object.inRole(Rolename)@</pre>
There are three things to use caution about this syntax.:
*'''Case Sensitive''' – Watch for lower case “i” and upper case “R”
*'''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 equalled 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.
8,849
edits

Navigation menu