mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-11-13 22:05:15 +00:00
User table polish and audit log updates
This commit is contained in:
10
frontend/src/api/backend/toggleUser.ts
Normal file
10
frontend/src/api/backend/toggleUser.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { User } from "./models";
|
||||
import { updateUser } from "./updateUser";
|
||||
|
||||
export async function toggleUser(id: number, enabled: boolean): Promise<boolean> {
|
||||
await updateUser({
|
||||
id,
|
||||
isDisabled: !enabled,
|
||||
} as User);
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user