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

#715 - hide New Collection button for non-admins

This commit is contained in:
Luke Pulverenti 2014-03-07 14:31:05 -05:00
parent f76d02d315
commit e829482b7a
2 changed files with 11 additions and 1 deletions

View file

@ -67,6 +67,16 @@
LibraryBrowser.saveQueryValues('boxsets', query);
Dashboard.getCurrentUser().done(function(user) {
if (user.Configuration.IsAdministrator) {
$('#btnNewCollection', page).removeClass('hide');
} else {
$('#btnNewCollection', page).addClass('hide');
}
});
Dashboard.hideLoadingMsg();
});
}