• 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?

#1
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?

Thanks.
 

Brogan

XenForo moderator
Staff member
#2
Revoke the View threads by others permission for the Registered user group, allow if for the staff user groups.
 

Mike

XenForo developer
Staff member
#3
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
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.