From 45bd605cedf4f516d11b0346599991548160083b Mon Sep 17 00:00:00 2001 From: halcyonjac Date: Thu, 24 Oct 2024 12:14:35 +0100 Subject: [PATCH] fix permission --- functions/callableFunctions/resetAssessments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/callableFunctions/resetAssessments.js b/functions/callableFunctions/resetAssessments.js index ef942fe33..a7d939868 100644 --- a/functions/callableFunctions/resetAssessments.js +++ b/functions/callableFunctions/resetAssessments.js @@ -17,7 +17,7 @@ export default functions.region('europe-west2').https.onCall(async (data, contex hasPermissions(context.auth.token.rp, [ PERMISSIONS.assessments.permissions.canReadAssessments.value, - PERMISSIONS.assessments.permissions.canDeleteAssessments.value, + PERMISSIONS.assessments.permissions.canUpdateAssessments.value, PERMISSIONS.exercises.permissions.canUpdateExercises.value, ]);