mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
fixes #566 - Add permission configuration for remote control
This commit is contained in:
parent
30dd80deae
commit
0b982de081
@ -25,6 +25,10 @@
|
|||||||
<input type="checkbox" id="chkIsAdmin" name="chkIsAdmin" />
|
<input type="checkbox" id="chkIsAdmin" name="chkIsAdmin" />
|
||||||
<label for="chkIsAdmin">Allow this user to manage the server</label>
|
<label for="chkIsAdmin">Allow this user to manage the server</label>
|
||||||
</li>
|
</li>
|
||||||
|
<li id="fldEnableRemoteControlOtherUsers" style="display: none;">
|
||||||
|
<input type="checkbox" id="chkEnableRemoteControlOtherUsers" name="chkEnableRemoteControlOtherUsers" />
|
||||||
|
<label for="chkEnableRemoteControlOtherUsers">Allow this user to remote control sessions from other users</label>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div id="accessControlDiv" style="display: none">
|
<div id="accessControlDiv" style="display: none">
|
||||||
<h2>Access Control</h2>
|
<h2>Access Control</h2>
|
||||||
|
@ -43,11 +43,13 @@
|
|||||||
if (!loggedInUser.Configuration.IsAdministrator) {
|
if (!loggedInUser.Configuration.IsAdministrator) {
|
||||||
$('#parentalControlDiv', page).hide();
|
$('#parentalControlDiv', page).hide();
|
||||||
$('#fldIsAdmin', page).hide();
|
$('#fldIsAdmin', page).hide();
|
||||||
|
$('#fldEnableRemoteControlOtherUsers', page).hide();
|
||||||
$('#accessControlDiv', page).hide();
|
$('#accessControlDiv', page).hide();
|
||||||
} else {
|
} else {
|
||||||
$('#parentalControlDiv', page).show();
|
$('#parentalControlDiv', page).show();
|
||||||
$('#accessControlDiv', page).show();
|
$('#accessControlDiv', page).show();
|
||||||
$('#fldIsAdmin', page).show();
|
$('#fldIsAdmin', page).show();
|
||||||
|
$('#fldEnableRemoteControlOtherUsers', page).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
Dashboard.setPageTitle(user.Name || "Add User");
|
Dashboard.setPageTitle(user.Name || "Add User");
|
||||||
@ -80,6 +82,7 @@
|
|||||||
|
|
||||||
$('#chkDisabled', page).checked(user.Configuration.IsDisabled || false).checkboxradio("refresh");
|
$('#chkDisabled', page).checked(user.Configuration.IsDisabled || false).checkboxradio("refresh");
|
||||||
$('#chkIsHidden', page).checked(user.Configuration.IsHidden || false).checkboxradio("refresh");
|
$('#chkIsHidden', page).checked(user.Configuration.IsHidden || false).checkboxradio("refresh");
|
||||||
|
$('#chkEnableRemoteControlOtherUsers', page).checked(user.Configuration.EnableRemoteControlOfOtherUsers || false).checkboxradio("refresh");
|
||||||
|
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
}
|
}
|
||||||
@ -110,6 +113,7 @@
|
|||||||
|
|
||||||
user.Configuration.IsHidden = $('#chkIsHidden', page).checked();
|
user.Configuration.IsHidden = $('#chkIsHidden', page).checked();
|
||||||
user.Configuration.IsDisabled = $('#chkDisabled', page).checked();
|
user.Configuration.IsDisabled = $('#chkDisabled', page).checked();
|
||||||
|
user.Configuration.EnableRemoteControlOfOtherUsers = $('#chkEnableRemoteControlOtherUsers', page).checked();
|
||||||
|
|
||||||
var userId = getParameterByName("userId");
|
var userId = getParameterByName("userId");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user