EvilGenius
New member
Hello,
What i want to ask is, if there is easy way to make a conditional statement whether a user is in range of certain groups.
Simply said is can i make any conditional statement that could replace
<xen:if is="{xen:helper ismemberof, $user, 10}">, <xen:if is="{xen:helper ismemberof, $user, 11}"> ... <xen:if is="{xen:helper ismemberof, $user, 50}">
I don't wanna have to check each group 1 by 1 but just check if the user is part of a group that fits a condition like group > 10 and group < 50
I guess in the end my question went down to is there a way to get a list/array of the groups in which a user is.
What i want to ask is, if there is easy way to make a conditional statement whether a user is in range of certain groups.
Simply said is can i make any conditional statement that could replace
<xen:if is="{xen:helper ismemberof, $user, 10}">, <xen:if is="{xen:helper ismemberof, $user, 11}"> ... <xen:if is="{xen:helper ismemberof, $user, 50}">
I don't wanna have to check each group 1 by 1 but just check if the user is part of a group that fits a condition like group > 10 and group < 50
I guess in the end my question went down to is there a way to get a list/array of the groups in which a user is.