Skip to content
Snippets Groups Projects
Commit 11c4d945 authored by Julian's avatar Julian
Browse files

Fix permission checks

parent 001574a8
No related branches found
No related tags found
1 merge request!23Resolve "Bugs with absences"
......@@ -72,7 +72,7 @@ class AbsenceBatchCreateMutation(BaseBatchCreateMutation):
class AbsenceBatchDeleteMutation(BaseBatchDeleteMutation):
class Meta:
model = Absence
permission_required = "kolego.delete_absence_rule"
permissions = ("kolego.delete_absence_rule",)
class AbsenceBatchPatchMutation(BaseBatchPatchMutation):
......@@ -109,7 +109,7 @@ class AbsenceReasonBatchCreateMutation(BaseBatchCreateMutation):
class AbsenceReasonBatchDeleteMutation(BaseBatchDeleteMutation):
class Meta:
model = AbsenceReason
permission_required = "kolego.delete_absencereason_rule"
permissions = ("kolego.delete_absencereason_rule",)
class AbsenceReasonBatchPatchMutation(BaseBatchPatchMutation):
......
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