Allow admin actions when accounts are disabled

This commit is contained in:
Cohee 2025-01-01 15:00:59 +02:00
parent 1d22cd7592
commit e45d2252aa

View File

@ -32,6 +32,10 @@ export async function setUserControls(isEnabled) {
* @returns {boolean} True if the current user is an admin * @returns {boolean} True if the current user is an admin
*/ */
export function isAdmin() { export function isAdmin() {
if (!accountsEnabled) {
return true;
}
if (!currentUser) { if (!currentUser) {
return false; return false;
} }