🏷️(frontend) adapt accesses types

We updated the types of the accesses to
get more information about the accesses.
This commit is contained in:
Anthony LC
2024-05-31 17:11:58 +02:00
committed by Anthony LC
parent 7b5698a370
commit 1779b7bab4
2 changed files with 4 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ export const createDocAccess = async ({
const response = await fetchAPI(`documents/${docId}/accesses/`, {
method: 'POST',
body: JSON.stringify({
user: memberId,
user_id: memberId,
role,
}),
});

View File

@@ -1,8 +1,10 @@
import { User } from '@/core';
export interface Access {
id: string;
role: Role;
team: string;
user: string;
user: User;
abilities: {
destroy: boolean;
retrieve: boolean;