6

I have an App with private messages, the messages are stored in a directus collections, each item has multiple Attachments (files). How can I restrict access to these files for other users, that are not in the Conversation?

I have tried set up a usergroup for each conversation, but I think its not the best way to do it.

And another question, how can I set the "mine" permission on files?

bad_coder
  • 11,289
  • 20
  • 44
  • 72

1 Answers1

3
  1. From setting menu -> roles and permissions
  2. Select public roles then system collections
  3. At files collection allow public to view permission

Now any public user can download your file.

https://your-directus.com/assets/<file-id>?download
ouflak
  • 2,458
  • 10
  • 44
  • 49
Abdelmomen
  • 39
  • 4