mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-02 14:26:28 +02:00
Merge branch 'develop' of https://github.com/syuilo/misskey into develop
This commit is contained in:
@@ -32,6 +32,10 @@ export default define(meta, async (ps) => {
|
||||
throw new Error('user not found');
|
||||
}
|
||||
|
||||
if (user.isAdmin) {
|
||||
throw new Error('cannot mark as moderator if admin user');
|
||||
}
|
||||
|
||||
await Users.update(user.id, {
|
||||
isModerator: true
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user