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

Permissions for Reporting posts

Ryan Kent

Well-known member
#1
I have a user who has decided to report a lot of posts. I was planning on removing his permission to report posts, but I don't see that permission. Am I overlooking something?
 

Jake Bunce

XenForo moderator
Staff member
#3
You can also edit the templates to restrict that link:

Admin CP -> Appearance -> Templates -> post

Find this code:

Code:
				<xen:if is="{$visitor.user_id}"><a href="{xen:link posts/report, $post}" class="OverlayTrigger item control report" data-cacheOverlay="false"><span></span>{xen:phrase report}</a></xen:if>
You can modify the condition, <xen:if is="{$visitor.user_id}">. For example, if you want to disallow group X then use this:

Code:
				<xen:if is="{$visitor.user_id} AND !{xen:helper ismemberof, $visitor, X}"><a href="{xen:link posts/report, $post}" class="OverlayTrigger item control report" data-cacheOverlay="false"><span></span>{xen:phrase report}</a></xen:if>