From 8a9e05b08f3307378317a96e61f8a13bbec18fe0 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Sat, 28 Jan 2023 11:16:29 -0800 Subject: [PATCH] Revert "add test comment for docker build issue" This reverts commit fdac590a023433113ae21295dbe1abf165fb5500. --- backend/src/app.ts | 2 +- backend/src/authorization/defineAbility.ts | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 backend/src/authorization/defineAbility.ts diff --git a/backend/src/app.ts b/backend/src/app.ts index bb2450f07..79561d00c 100644 --- a/backend/src/app.ts +++ b/backend/src/app.ts @@ -57,7 +57,7 @@ import { healthCheck } from './routes/status'; import { getLogger } from './utils/logger'; import { RouteNotFoundError } from './utils/errors'; import { requestErrorHandler } from './middleware/requestErrorHandler'; -// test comment + // patch async route params to handle Promise Rejections patchRouterParam(); diff --git a/backend/src/authorization/defineAbility.ts b/backend/src/authorization/defineAbility.ts deleted file mode 100644 index 4bdc076f4..000000000 --- a/backend/src/authorization/defineAbility.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { defineAbility } from '@casl/ability'; - -export const defineWorkspaceAbilityFor = (user: any) => defineAbility((can) => { - // can('manage', 'all'); - // console.log("workspace ===>", workspace) - - // if (user) { - can(["read", "delete", "update"], "Workspace", { name: "Example Projects" }) - // } - - // if (user.isLoggedIn) { - // can('update', 'Article', { authorId: user.id }); - // can('create', 'Comment'); - // can('update', 'Comment', { authorId: user.id }); - // } -}); \ No newline at end of file