Allow configuring remote control permissions for different users (#13974)

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages
2026-01-09 00:21:28 +08:00
committed by GitHub
parent 4d3ccc62e8
commit 3a9084006f
11 changed files with 353 additions and 60 deletions

View File

@@ -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() {