feat: Cleanup api keys and webhooks for suspended users (#3756)
This commit is contained in:
@@ -483,7 +483,7 @@ describe("#users.demote", () => {
|
||||
expect(body).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it("should not demote admins if only one available", async () => {
|
||||
it("should not allow demoting self", async () => {
|
||||
const admin = await buildAdmin();
|
||||
const res = await server.post("/api/users.demote", {
|
||||
body: {
|
||||
|
||||
Reference in New Issue
Block a user