feat(user stuff): added in all the user stuff
This commit is contained in:
@@ -59,7 +59,7 @@ export default function ExpandedRow({ row }: { row: any }) {
|
||||
// user,
|
||||
// });
|
||||
try {
|
||||
const result = await api.patch(`/api/admin/${user.id}/grant`, {
|
||||
const result = await api.patch(`/api/admin/users/${user.id}/grant`, {
|
||||
module: module,
|
||||
role: role,
|
||||
});
|
||||
@@ -83,7 +83,7 @@ export default function ExpandedRow({ row }: { row: any }) {
|
||||
|
||||
const onDeleteRole = async (module: string) => {
|
||||
try {
|
||||
const result = await api.patch(`/api/admin/${user.id}/revoke`, {
|
||||
const result = await api.patch(`/api/admin/users/${user.id}/revoke`, {
|
||||
module: module,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user