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

start using user policy

This commit is contained in:
Luke Pulverenti 2014-12-20 01:06:27 -05:00
parent d84df77553
commit db0f911a4d
34 changed files with 117 additions and 184 deletions

View file

@ -321,7 +321,7 @@
if (item.Type == 'BoxSet' || item.Type == 'Playlist') {
commands.push('delete');
}
else if (user.Configuration.EnableContentDeletion &&
else if (user.Policy.EnableContentDeletion &&
item.Type != "TvChannel" &&
item.Type != "Genre" &&
item.Type != "Studio" &&
@ -333,7 +333,7 @@
commands.push('delete');
}
if (user.Configuration.IsAdministrator) {
if (user.Policy.IsAdministrator) {
if (item.Type != "Recording" && item.Type != "Program") {
commands.push('edit');
}