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:
parent
448789400b
commit
394a548263
3 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue