From 079202205e837d9d3e93029f757a43290320b898 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Thu, 3 Aug 2023 23:55:59 +0200 Subject: [PATCH] Removed todo from the permission.ts --- src/controller/permission.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/controller/permission.ts b/src/controller/permission.ts index e58e374..6034f39 100644 --- a/src/controller/permission.ts +++ b/src/controller/permission.ts @@ -53,8 +53,6 @@ export const deletePermission = async (userId: string, projectId: string, permis const permission = await Permission.findOne({ projectId: encryptClearField(String(access._id)), permission: encryptClearField(permissionName) }); if (permission === null) return { code: 4009, message: "The provided permission does not exist" }; - // TODO: Delete permission in license & groups - await permission.deleteOne(); } @@ -62,8 +60,6 @@ export const updatePermission = async (userId: string, projectId: string, permis const access = await checkProjectAccess(IKeyRole.MANAGE)(userId, projectId); if ("code" in access) return access; - // TODO: (if name) Update permission in license & groups - const permission = await Permission.findOne({ projectId: encryptClearField(String(access._id)), permission: encryptClearField(permissionName) }); if (permission === null) return { code: 4009, message: "The provided permission does not exist" };