Nasr Well-known member Mar 20, 2011 #1 Is it possible to use "hasPermissions" as a conditional in templates?
P Paul B XenForo moderator Staff member Mar 20, 2011 #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.
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 Mar 20, 2011 #3 Brogan said: 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. Click to expand... 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 said: 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. Click to expand... 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?
P Paul B XenForo moderator Staff member Mar 20, 2011 #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}">
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}">