1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
This commit is contained in:
viown 2025-03-30 11:03:15 -04:00 committed by GitHub
commit 754d7108e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View file

@ -225,6 +225,12 @@ const UserEdit = () => {
user.Policy.EnableContentDeletionFromFolders = user.Policy.EnableContentDeletion ? [] : getCheckedElementDataIds(page.querySelectorAll('.chkFolder'));
user.Policy.SyncPlayAccess = (page.querySelector('#selectSyncPlayAccess') as HTMLSelectElement).value as SyncPlayUserAccessType;
if (!user.HasPassword && user.Policy.IsAdministrator) {
toast(globalize.translate('PasswordAdminRequired'));
loading.hide();
return;
}
window.ApiClient.updateUser(user).then(() => (
window.ApiClient.updateUserPolicy(user.Id || '', user.Policy || { PasswordResetProviderId: '', AuthenticationProviderId: '' })
)).then(() => {

View file

@ -1318,6 +1318,7 @@
"PackageInstallFailed": "{0} (version {1}) installation failed.",
"PageNotFound": "This is not the page you are looking for.",
"ParentalRating": "Parental rating",
"PasswordAdminRequired": "The user must have a password set before marking them as admin.",
"PasswordMatchError": "Password and password confirmation must match.",
"PasswordRequiredForAdmin": "A password is required for admin accounts.",
"PasswordResetComplete": "The password has been reset.",