mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Make user input saving account-specific
This commit is contained in:
@ -43,6 +43,14 @@ export function isAdmin() {
|
||||
return Boolean(currentUser.admin);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the handle string of the current user.
|
||||
* @returns {string} User handle
|
||||
*/
|
||||
export function getCurrentUserHandle() {
|
||||
return currentUser?.handle || 'default-user';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current user.
|
||||
* @returns {Promise<void>}
|
||||
|
Reference in New Issue
Block a user