mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-25 14:11:14 +03:00
Allow configuring remote control permissions for different users (#13974)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -1396,7 +1396,16 @@ function self.onMouse(evt) {
|
||||
}
|
||||
|
||||
function check_if_overlay() {
|
||||
if (handler.get_option('allow-remote-config-modification') != 'Y') {
|
||||
var enabled;
|
||||
var is_enabled_by_control_permissions = handler.is_remote_modify_enabled_by_control_permissions();
|
||||
if (is_enabled_by_control_permissions == "true") {
|
||||
enabled = true;
|
||||
} else if (is_enabled_by_control_permissions == "false") {
|
||||
enabled = false;
|
||||
} else {
|
||||
enabled = handler.get_option('allow-remote-config-modification') == 'Y';
|
||||
}
|
||||
if (!enabled) {
|
||||
var time0 = getTime();
|
||||
handler.check_mouse_time();
|
||||
self.timer(120ms, function() {
|
||||
|
||||
Reference in New Issue
Block a user