Is there a helper to check if a user is a SUPER moderator?

Jaxel

Well-known member
Right now I am doing the following in a template
Code:
<xen:if is="{xen:helper ismemberof, $user, 4}">
	<li class="ribbonStaff"><div class="left"></div><div class="right"></div>Staff / Moderator</li>
</xen:if>
The problem is that this will return true if a user has any moderator permissions; even if they are a moderator of only one forum. I want this to return true only if a user is a super moderator. How would I check this?
 

Mike

XenForo developer
Staff member
We don't actually distinguish them in the code (the process just distinguishes how permissions are set).
 

Jaxel

Well-known member
So then I wont be able to do something like?
Code:
<xen:if is="{$user.is_super_moderator}">
 
R

ragtek

Guest
Which usergroupid?
There is no usergroupid for supermods...

YOu need to check table xf_moderator where moderator.is_super_moderator = 1....

Nope, you can't do that.

You will have to check the user group id for that :S
 
F

Floris

Guest
I did the same, I fixed this by making a group called Global, on a networked site. This way the global admins and global mods .. additional usergroup > checkbox, WOOT
 
Top