9 lines
236 B
Text
9 lines
236 B
Text
|
polkit.addRule(function(action, subject) {
|
||
|
if (action.id == "org.freedesktop.hostname1.set-static-hostname" &&
|
||
|
subject.local &&
|
||
|
subject.active &&
|
||
|
subject.isInGroup ("wheel")) {
|
||
|
return polkit.Result.YES;
|
||
|
}
|
||
|
});
|