Allow admin actions when accounts are disabled

e45d2252aa432634501014e7c61e0891f99520de

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +4 -0Showing whitespace changes
public/scripts/user.js+4 -0
@@ -32,6 +32,10 @@ export async function setUserControls(isEnabled) {
32 * @returns {boolean} True if the current user is an admin32 * @returns {boolean} True if the current user is an admin
33 */33 */
34export function isAdmin() {34export function isAdmin() {
35 if (!accountsEnabled) {
36 return true;
37 }
38
35 if (!currentUser) {39 if (!currentUser) {
36 return false;40 return false;
37 }41 }