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

Implement syncplay permissions for a user

This commit is contained in:
gion 2020-04-04 18:20:39 +02:00
parent 56ee678fc2
commit a18bca9d8c
6 changed files with 64 additions and 23 deletions

View file

@ -86,6 +86,12 @@ define(['dom', 'layoutManager', 'inputManager', 'connectionManager', 'events', '
if (!layoutManager.tv) {
headerCastButton.classList.remove('hide');
}
var policy = user.Policy ? user.Policy : user.localUser.Policy;
if (headerSyncButton && policy && policy.SyncplayAccess !== "None") {
headerSyncButton.classList.remove("hide");
}
} else {
headerHomeButton.classList.add('hide');
headerCastButton.classList.add('hide');
@ -95,8 +101,6 @@ define(['dom', 'layoutManager', 'inputManager', 'connectionManager', 'events', '
}
}
headerSyncButton.classList.remove("hide");
requiresUserRefresh = false;
}