fix: also accept "wheel" as group name for polkit authentication

Fixes https://github.com/pop-os/cosmic-settings/issues/1293
This commit is contained in:
therealmate 2025-07-26 13:04:11 +02:00 committed by Michael Murphy
parent d1d6f756dc
commit 6ebdcdc23f

View file

@ -6,7 +6,7 @@ polkit.addRule(function(action, subject) {
action.id == "org.freedesktop.hostname1.set-hostname") &&
subject.local &&
subject.active &&
subject.isInGroup ("sudo")) {
(subject.isInGroup("sudo") || subject.isInGroup("wheel"))) {
return polkit.Result.YES;
}
});
});