diff --git a/aleksis/apps/kolego/schema/absence.py b/aleksis/apps/kolego/schema/absence.py index 7d6f1341127234ba3d0f899115097b8c71b9d4ed..e68cc03281cd4114a43915cb1538ffe15f3997f4 100644 --- a/aleksis/apps/kolego/schema/absence.py +++ b/aleksis/apps/kolego/schema/absence.py @@ -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):