Просмотр исходного кода

Extended typing to auth module

jnfrati 4 лет назад
Родитель
Сommit
392940f003
1 измененных файлов с 5 добавлено и 2 удалено
  1. 5 2
      dashboard/src/shared/auth/types.ts

+ 5 - 2
dashboard/src/shared/auth/types.ts

@@ -3,14 +3,17 @@ export type ScopeType =
   | "cluster"
   | "settings"
   | "namespace"
-  | "application";
+  | "application"
+  | "env_group"
+  | "job"
+  | "integrations";
 
 export type Verbs = "get" | "list" | "create" | "update" | "delete";
 
 export interface PolicyDocType {
   scope: ScopeType;
   verbs: Array<Verbs>;
-  resources: string[];
+  resources?: string[];
   children?: Partial<Record<ScopeType, PolicyDocType>>;
 }