1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

No admin user can be allowed to "edit subtitles"

Front end support to new feature. A user without admin rights can be allowed to "edit subtitles"
This commit is contained in:
chinkara 2023-10-15 22:01:52 +02:00
parent 448789400b
commit 394a548263
3 changed files with 9 additions and 1 deletions

View file

@ -214,7 +214,7 @@ export function getCommands(options) {
});
}
if (canEdit && item.MediaType === 'Video' && item.Type !== 'TvChannel' && item.Type !== 'Program'
if ((canEdit || user.Policy.EnableSubtitleManagement) && item.MediaType === 'Video' && item.Type !== 'TvChannel' && item.Type !== 'Program'
&& item.LocationType !== 'Virtual'
&& !(item.Type === 'Recording' && item.Status !== 'Completed')
&& options.editSubtitles !== false