Allow admin actions when accounts are disabled
| @@ -32,6 +32,10 @@ export async function setUserControls(isEnabled) { | ||
| 32 | 32 | * @returns {boolean} True if the current user is an admin |
| 33 | 33 | */ |
| 34 | 34 | export function isAdmin() { |
| 35 | + if (!accountsEnabled) { | |
| 36 | + return true; | |
| 37 | + } | |
| 38 | + | |
| 35 | 39 | if (!currentUser) { |
| 36 | 40 | return false; |
| 37 | 41 | } |