• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Restrict Content To Certain Groups


Well-known member
I'm trying to figure out a way to restrict content to certain multiple groups.

I found this topic that restricts content to a group, but not multiple groups. This is something that is essential for my site.

Any help?


Well-known member
I thought I'd try this:
<xen:if is="!{xen:helper checkusergroup, $visitor, 1, 11, 12, 13, 14, 15}">
    // User who does NOT belong to any of the listed usergroups
Is supposed to work for those who are NOT in those groups listed. But it didn't seem to work.


Well-known member
actually, I found that post through search. After backing up to the beginning, I realized that it is a add-on. So now I'm attempting to install the add-on in beta 5. having issues with that too, but let me try a few things and I'll get back to ya.


Does the helper function support arrays?

	 * Determines if a user is a member of a particular user group
	 * @param array $user
	 * @param integer $userGroupId
	 * @param boolean Also check secondary groups
	 * @return boolean
	public function isMemberOfUserGroup(array $user, $userGroupId, $includeSecondaryGroups = true)