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

update chromecast

This commit is contained in:
Luke Pulverenti 2014-08-21 11:55:35 -04:00
parent f6995379a2
commit 3f09347bf7
8 changed files with 185 additions and 68 deletions

View file

@ -1274,14 +1274,13 @@ $(document).on('pagebeforeshow', ".page", function () {
var page = $(this);
var userId = Dashboard.getCurrentUserId();
if (userId) {
if (Dashboard.getAccessToken() && Dashboard.getCurrentUserId()) {
Dashboard.getCurrentUser().done(function (user) {
if (!user.Configuration.IsAdministrator && page.hasClass('type-interior') && !page.hasClass('publicUserPage')) {
window.location.replace("index.html");
return;
}
Dashboard.ensureToolsMenu(page, user);