Skip to content

Commit

Permalink
fix syntax error (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
blockisec authored Jul 22, 2024
1 parent 4d9abc3 commit 3c60769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/advisories/viewsets/advisory.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_permissions(self):
read_only_roles=[Roles.READ_ONLY, Roles.VENDOR],
)()
]
if self.action in "export_pdf":
if self.action in ["export_pdf", "preview"]:
return [
permissions.AdvisoryPermission(
read_write_roles=[Roles.CREATOR],
Expand Down

0 comments on commit 3c60769

Please sign in to comment.