hasPermissions in templates?

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.
 
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?
 
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}">
 
Top Bottom