Allow setting the computer's pretty hostname if the user is an admin. https://bugzilla.gnome.org/show_bug.cgi?id=679281
8 lines
236 B
Text
8 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;
|
|
}
|
|
});
|