Skip to content

Commit

Permalink
Add 'Permission' interface
Browse files Browse the repository at this point in the history
  • Loading branch information
heisbrot committed Mar 25, 2024
1 parent f7722e0 commit efe6b82
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/interfaces/Account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ export interface Account {
jwt_groups_enabled: boolean;
jwt_groups_claim_name: string;
jwt_allow_groups: string[];
regular_users_view_blocked: boolean;
};
}
3 changes: 3 additions & 0 deletions src/interfaces/Permission.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export interface Permission {
dashboard_view: "limited" | "full" | "blocked";
}
3 changes: 3 additions & 0 deletions src/interfaces/User.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Permission } from "@/interfaces/Permission";

export interface User {
id: string;
email?: string;
Expand All @@ -9,6 +11,7 @@ export interface User {
is_service_user?: boolean;
is_blocked?: boolean;
last_login?: Date;
permissions: Permission;
}

export enum Role {
Expand Down

0 comments on commit efe6b82

Please sign in to comment.