Skip to content
Snippets Groups Projects
Commit a10c3e06 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Add mixin for permission checking on GraphQL patch mutations

parent e2ae0c11
No related branches found
No related tags found
Loading
......@@ -85,6 +85,14 @@ class PermissionBatchPatchMixin:
# TODO: Check PERMISSIONS (or rules)
return True
class PermissionPatchMixin:
class Meta:
login_required = True
@classmethod
def check_permissions(cls, root, info, input, id, obj):
# TODO: Check PERMISSIONS (or rules)
return True
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment