mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 23:52:09 +00:00
feat(rbac): added org permission context for pulling permission from api
This commit is contained in:
@@ -40,13 +40,19 @@ export const UpdateRoleSchema = z.object({
|
||||
|
||||
export const DeleteRoleSchema = z.object({
|
||||
params: z.object({
|
||||
id: z.string()
|
||||
id: z.string().trim()
|
||||
})
|
||||
});
|
||||
|
||||
export const GetRoleSchema = z.object({
|
||||
query: z.object({
|
||||
workspaceId: z.string().optional(),
|
||||
orgId: z.string()
|
||||
workspaceId: z.string().trim().optional(),
|
||||
orgId: z.string().trim()
|
||||
})
|
||||
});
|
||||
|
||||
export const GetUserPermission = z.object({
|
||||
params: z.object({
|
||||
orgId: z.string().trim()
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user