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:
parent
f76d02d315
commit
e829482b7a
2 changed files with 11 additions and 1 deletions
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue