Allow admin actions when accounts are disabled

e45d2252aa432634501014e7c61e0891f99520de

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

1 files changed, +4 -0Ignore whitespace
public/scripts/user.js+4 -0
@@ -32,6 +32,10 @@ export async function setUserControls(isEnabled) {
3232 * @returns {boolean} True if the current user is an admin
3333 */
3434export function isAdmin() {
35+ if (!accountsEnabled) {
36+ return true;
37+ }
38+
3539 if (!currentUser) {
3640 return false;
3741 }