Skip to content
Snippets Groups Projects
Commit 7646cf4a authored by Julian's avatar Julian
Browse files

Use the proper specific permission

parent e87acc9f
No related branches found
No related tags found
3 merge requests!1237Release 3.0,!1207Resolve "Move DeleteDialog from Plank to Core",!1183Release 3.0
Pipeline #121160 failed
from django.db.models import Model
from django.core.exceptions import PermissionDenied
import graphene
from graphene_django import DjangoObjectType
......@@ -45,4 +46,4 @@ class DeleteMutation(graphene.Mutation):
obj.delete()
return cls(ok=True)
else:
raise Exception("Permission denied")
raise PermissionDenied()
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