FIX: Allow logout for admins in staff-writes-only-mode (#18441)

This commit is contained in:
Daniel Waterworth 2022-09-30 13:03:20 -05:00 committed by GitHub
parent 136174e0ee
commit c1a7fa6b5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ const ApplicationRoute = DiscourseRoute.extend(OpenComposer, {
this.controllerFor("application").send("toggleSidebar");
},
logout: unlessReadOnly(
logout: unlessStrictlyReadOnly(
"_handleLogout",
I18n.t("read_only_mode.logout_disabled")
),