]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: add permissions to OPTIONS requests for notes (#7661)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Mon, 9 Sep 2024 15:34:21 +0000 (08:34 -0700)
committerGitHub <noreply@github.com>
Mon, 9 Sep 2024 15:34:21 +0000 (08:34 -0700)
src/documents/permissions.py

index a254f8377e9a6945ed52420bd372b7ff033023c3..464916ad4fc398dfc71afc14a3fab3d2a196be03 100644 (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"],