From 68f0c5c5884431e7e8f586dccf98132abebb193e Mon Sep 17 00:00:00 2001 From: Sabir Hassan Date: Sat, 1 Oct 2022 14:52:36 +0500 Subject: [PATCH] fix: do not throw error on deleting group when it is created by an external auth provider --- api/src/controllers/group.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/api/src/controllers/group.ts b/api/src/controllers/group.ts index 990d0f1..878a9c0 100644 --- a/api/src/controllers/group.ts +++ b/api/src/controllers/group.ts @@ -155,14 +155,6 @@ export class GroupController { message: 'Group not found.' } - if (group.authProvider !== AuthProviderType.Internal) { - throw { - code: 405, - status: 'Method Not Allowed', - message: 'Can not delete group created by an external auth provider.' - } - } - return await group.remove() } }