gnome-control-center/panels/common/gnome-control-center.rules

10 lines
301 B
Text
Raw Normal View History

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