mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-28 15:41:03 +03:00
Allow configuring remote control permissions for different users (#13974)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
10
src/ui.rs
10
src/ui.rs
@@ -699,6 +699,15 @@ impl UI {
|
||||
fn get_builtin_option(&self, key: String) -> String {
|
||||
crate::ui_interface::get_builtin_option(&key)
|
||||
}
|
||||
|
||||
fn is_remote_modify_enabled_by_control_permissions(&self) -> String {
|
||||
match crate::ui_interface::is_remote_modify_enabled_by_control_permissions() {
|
||||
Some(true) => "true",
|
||||
Some(false) => "false",
|
||||
None => "",
|
||||
}
|
||||
.to_string()
|
||||
}
|
||||
}
|
||||
|
||||
impl sciter::EventHandler for UI {
|
||||
@@ -801,6 +810,7 @@ impl sciter::EventHandler for UI {
|
||||
fn verify_login(String, String);
|
||||
fn is_option_fixed(String);
|
||||
fn get_builtin_option(String);
|
||||
fn is_remote_modify_enabled_by_control_permissions();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user