mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 14:28:20 +00:00
add test comment for docker build issue
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ import { healthCheck } from './routes/status';
|
|||||||
import { getLogger } from './utils/logger';
|
import { getLogger } from './utils/logger';
|
||||||
import { RouteNotFoundError } from './utils/errors';
|
import { RouteNotFoundError } from './utils/errors';
|
||||||
import { requestErrorHandler } from './middleware/requestErrorHandler';
|
import { requestErrorHandler } from './middleware/requestErrorHandler';
|
||||||
|
// test comment
|
||||||
// patch async route params to handle Promise Rejections
|
// patch async route params to handle Promise Rejections
|
||||||
patchRouterParam();
|
patchRouterParam();
|
||||||
|
|
||||||
|
|||||||
@@ -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 });
|
||||||
|
// }
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user