fix(permissions): align workspace resource actions with role rules

This commit is contained in:
2026-04-28 10:02:37 +03:30
parent 9fceef3753
commit b1ad372474
8 changed files with 141 additions and 77 deletions

View File

@@ -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[];

View File

@@ -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;
}