Skip to content

Commit

Permalink
调整权限定义
Browse files Browse the repository at this point in the history
  • Loading branch information
liveact committed May 24, 2024
1 parent 3ea04a7 commit 40ca678
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions epub/apps/epub_labels/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class LableListAPIView(CreateResponseMixin, generics.ListCreateAPIView):
serializer_class = LabelSerializer
pagination_class = LargeResultsSetPagination
permissions = {
"METHOD": "DIRECTLY",
"POST": "admin.label.menu",
}

Expand Down Expand Up @@ -47,6 +48,7 @@ class AppLabelListAPIView(CreateResponseMixin, generics.ListCreateAPIView):
serializer_class = AppLabelSerializers
pagination_class = LargeResultsSetPagination
permissions = {
"METHOD": "DIRECTLY",
"POST": "admin.label.menu",
}

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = epub-python-core
version = 0.2.31
version = 0.2.32

[options]
packages = find:
Expand Down

0 comments on commit 40ca678

Please sign in to comment.