🏷️(frontend) adapt accesses types
We updated the types of the accesses to get more information about the accesses.
This commit is contained in:
@@ -27,7 +27,7 @@ export const createDocAccess = async ({
|
|||||||
const response = await fetchAPI(`documents/${docId}/accesses/`, {
|
const response = await fetchAPI(`documents/${docId}/accesses/`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
user: memberId,
|
user_id: memberId,
|
||||||
role,
|
role,
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
|
import { User } from '@/core';
|
||||||
|
|
||||||
export interface Access {
|
export interface Access {
|
||||||
id: string;
|
id: string;
|
||||||
role: Role;
|
role: Role;
|
||||||
team: string;
|
team: string;
|
||||||
user: string;
|
user: User;
|
||||||
abilities: {
|
abilities: {
|
||||||
destroy: boolean;
|
destroy: boolean;
|
||||||
retrieve: boolean;
|
retrieve: boolean;
|
||||||
|
|||||||
Reference in New Issue
Block a user