Fix: add permissions to OPTIONS requests for notes (#7661)

This commit is contained in:
shamoon 2024-09-09 08:34:21 -07:00 committed by GitHub
parent a64a182fc3
commit f1559b7108
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -146,6 +146,7 @@ class PaperlessNotePermissions(BasePermission):
"""
perms_map = {
"OPTIONS": ["documents.view_note"],
"GET": ["documents.view_note"],
"POST": ["documents.add_note"],
"DELETE": ["documents.delete_note"],