From c3588801dab7b72a57eec6f76477d41fe784d2c0 Mon Sep 17 00:00:00 2001 From: Dexter Gaon-Shatford Date: Thu, 9 Nov 2023 10:50:42 -0500 Subject: [PATCH] Fix syntax error in polkit rule Remove extra opening parenthesis --- notifier/polkit/49-nopasswd_limited_xbps_install_sync.rules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notifier/polkit/49-nopasswd_limited_xbps_install_sync.rules b/notifier/polkit/49-nopasswd_limited_xbps_install_sync.rules index 53e9e08..4e7e8d4 100644 --- a/notifier/polkit/49-nopasswd_limited_xbps_install_sync.rules +++ b/notifier/polkit/49-nopasswd_limited_xbps_install_sync.rules @@ -2,9 +2,9 @@ * without password authentication, similar to "sudo NOPASSWD:" */ polkit.addRule(function(action, subject) { - if ((action.id == "org.freedesktop.policykit.pkexec.run-xbpsinstall" && + if (action.id == "org.freedesktop.policykit.pkexec.run-xbpsinstall" && subject.isInGroup("wheel")) { return polkit.Result.YES; } -}); \ No newline at end of file +});