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

XF 1.3 Is there way to restrict an attachment for moderators only?

Discussion in 'XenForo Questions and Support' started by Alexey_, Jun 11, 2014.

  1. Alexey_

    Alexey_ New Member

    For example, we have a forum user who want to provide a sensitive information(passwords, etc) for moderators or administrative users. The information will be added to forum post as an attachment.

    Is there way to hide such attachment from other non-administrative users?

  2. Brogan

    Brogan XenForo Moderator Staff Member

    Revoke the View threads by others permission for the Registered user group, allow if for the staff user groups.
  3. Mike

    Mike XenForo Developer Staff Member

    If it's an attachment, you would disable the ability to view attachments, but I'm not positive if they can upload an attachment without the ability to view them.

    So @Brogan's suggestion is probably better: just revoke the ability to even view others' threads and they won't know the threads even exist.
  4. Alexey_

    Alexey_ New Member

    In such case all attachments will not be available for all registered users...
    I want to implement something like that: [STAFF_ONLY]my-attachment.pdf[/STAFF_ONLY]

    So, this particular attachment will be hidden from other users but visible for staff users.
  5. Brogan

    Brogan XenForo Moderator Staff Member

    You can't :)
  6. Alexey_

    Alexey_ New Member

  7. Brogan

    Brogan XenForo Moderator Staff Member

    I posted the solution above.

    Anything else would require custom development.

Share This Page