🏷️(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/`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
user: memberId,
|
||||
user_id: memberId,
|
||||
role,
|
||||
}),
|
||||
});
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user