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

hasPermissions in templates?

Brogan

XenForo moderator
Staff member
#2
Do you mean with regards to a specific permission?

There isn't anything like that but there are things such as $post.canInlineMod, $post.canEdit, $post.canDelete, etc.
 

Nasr

Well-known member
#3
Do you mean with regards to a specific permission?

There isn't anything like that but there are things such as $post.canInlineMod, $post.canEdit, $post.canDelete, etc.
What I meant is, let say a mod has the ability to ban a member, instead of using $isAdmin or isMod rather, can we use something like $hasPermissions= 'permission'

Something of that nature?
 

Brogan

XenForo moderator
Staff member
#4
You can't do that as far as I am aware as banning is only available from the ACP.

You could use this though: <xen:if is="{$post.canCleanSpam}">