fix(permissions): align workspace resource actions with role rules
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
import { authFetch } from "./client";
|
||||
|
||||
export interface ProjectClient {
|
||||
id: string;
|
||||
name: string;
|
||||
}
|
||||
import { authFetch } from "./client";
|
||||
|
||||
interface AuditUser {
|
||||
id: string;
|
||||
first_name?: string;
|
||||
last_name?: string;
|
||||
mobile?: string;
|
||||
}
|
||||
|
||||
export interface ProjectClient {
|
||||
id: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface ProjectMemberPayload {
|
||||
user_id: string;
|
||||
@@ -33,6 +40,7 @@ export interface Project {
|
||||
is_archived: boolean;
|
||||
is_deleted?: boolean;
|
||||
workspace: string;
|
||||
created_by?: AuditUser | null;
|
||||
client: ProjectClient | null;
|
||||
my_role?: string;
|
||||
members?: ProjectMembership[];
|
||||
|
||||
@@ -1,11 +1,19 @@
|
||||
import { authFetch } from "./client";
|
||||
|
||||
interface AuditUser {
|
||||
id: string;
|
||||
first_name?: string;
|
||||
last_name?: string;
|
||||
mobile?: string;
|
||||
}
|
||||
|
||||
export interface Tag {
|
||||
id: string;
|
||||
workspace: string;
|
||||
name: string;
|
||||
color: string;
|
||||
is_deleted?: boolean;
|
||||
created_by?: AuditUser | null;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user