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

fixes #683 - Support disabling playback per user

This commit is contained in:
Luke Pulverenti 2014-01-22 21:19:04 -05:00
parent b6992659d1
commit 1fbbb143fe
9 changed files with 63 additions and 54 deletions

View file

@ -999,8 +999,12 @@
}, 4000);
}
self.canPlay = function (item) {
self.canPlay = function (item, user) {
if (!user.Configuration.EnableMediaPlayback) {
return false;
}
if (item.LocationType == "Virtual") {
return false;
}