mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Fixed typo
This commit is contained in:
parent
da884752a8
commit
8cc720963a
@ -309,7 +309,7 @@ router.post('users', async (path: SubPath, ctx: AppContext) => {
|
||||
} else if (fields.stop_impersonate_button) {
|
||||
await stopImpersonating(ctx);
|
||||
return redirect(ctx, config().baseUrl);
|
||||
} if (ctx.joplin.owner.is_admin) {
|
||||
} else if (ctx.joplin.owner.is_admin) {
|
||||
if (fields.disable_button || fields.restore_button) {
|
||||
const user = await models.user().load(path.id);
|
||||
await models.user().checkIfAllowed(ctx.joplin.owner, AclAction.Delete, user);
|
||||
|
Loading…
Reference in New Issue
Block a user