added some user access settings
This commit is contained in:
@@ -59,8 +59,10 @@
|
||||
if (!loggedInUser.Configuration.IsAdministrator) {
|
||||
$('#parentalControlDiv', page).hide();
|
||||
$('#fldIsAdmin', page).hide();
|
||||
$('#accessControlDiv', page).show();
|
||||
} else {
|
||||
$('#parentalControlDiv', page).show();
|
||||
$('#accessControlDiv', page).show();
|
||||
$('#fldIsAdmin', page).show();
|
||||
}
|
||||
|
||||
@@ -102,6 +104,9 @@
|
||||
$('#chkIsAdmin', page).checked(user.Configuration.IsAdministrator || false).checkboxradio("refresh");
|
||||
$('#chkBlockNotRated', page).checked(user.Configuration.BlockNotRated || false).checkboxradio("refresh");
|
||||
|
||||
$('#chkDisabled', page).checked(user.Configuration.IsDisabled || false).checkboxradio("refresh");
|
||||
$('#chkIsHidden', page).checked(user.Configuration.IsHidden || false).checkboxradio("refresh");
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
}
|
||||
|
||||
@@ -132,6 +137,9 @@
|
||||
user.Configuration.UseForcedSubtitlesOnly = $('#chkForcedSubtitlesOnly', page).checked();
|
||||
user.Configuration.BlockNotRated = $('#chkBlockNotRated', page).checked();
|
||||
|
||||
user.Configuration.IsHidden = $('#chkIsHidden', page).checked();
|
||||
user.Configuration.IsDisabled = $('#chkDisabled', page).checked();
|
||||
|
||||
var userId = getParameterByName("userId");
|
||||
|
||||
if (userId) {
|
||||
|
||||
Reference in New Issue
Block a user