Skip to content

Commit 006f9f7

Browse files
committed
fix: error in linux
1 parent 3c33d43 commit 006f9f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src-tauri/src/utils/help.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ pub fn user_has_admin_right() -> Result<bool,String>{
223223
if user_id.is_err(){
224224
return Err("Error occurred during get UID variable from linux enviroment".to_string())
225225
}
226-
if user_id.unwrap() == 0{
226+
if user_id.unwrap() == "0" {
227227
Ok(true)
228228
}else{
229229
Ok(false)

0 commit comments

Comments
 (0)