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

Permissions for Reporting posts

Discussion in 'XenForo Questions and Support' started by Ryan Kent, Jun 27, 2011.

  1. Ryan Kent

    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?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    That's not a permission.

    All logged in members are able to report posts.
     
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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>
    
     
    Ryan Kent likes this.

Share This Page