mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-28 09:50:14 +01:00
Allow admin actions when accounts are disabled
This commit is contained in:
parent
1d22cd7592
commit
e45d2252aa
@ -32,6 +32,10 @@ export async function setUserControls(isEnabled) {
|
||||
* @returns {boolean} True if the current user is an admin
|
||||
*/
|
||||
export function isAdmin() {
|
||||
if (!accountsEnabled) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!currentUser) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user