mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update chromecast
This commit is contained in:
parent
f6995379a2
commit
3f09347bf7
8 changed files with 185 additions and 68 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue