Permissions for Reporting posts

Ryan Kent

Well-known member
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?
 
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>
 
Top Bottom