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:
parent
d1d6f756dc
commit
6ebdcdc23f
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue