1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Fixed typo

This commit is contained in:
Laurent Cozic 2021-09-20 17:01:46 +01:00
parent da884752a8
commit 8cc720963a

View File

@ -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);