Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

add test comment for docker build issue

Maidul Islamfdac590a0234
diff --git a/backend/src/app.ts b/backend/src/app.ts
index 79561d00c0..bb2450f07b 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
new file mode 100644
index 0000000000..4bdc076f44
--- /dev/null
+++ b/backend/src/authorization/defineAbility.ts
@@ -0,0 +1,16 @@
+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