Allow local admins with an active session use the Date & Time panel without requiring a password. https://bugzilla.gnome.org/show_bug.cgi?id=646185
12 lines
488 B
Text
12 lines
488 B
Text
polkit.addRule(function(action, subject) {
|
|
if ((action.id == "org.freedesktop.locale1.set-locale" ||
|
|
action.id == "org.freedesktop.locale1.set-keyboard" ||
|
|
action.id == "org.freedesktop.hostname1.set-static-hostname" ||
|
|
action.id == "org.freedesktop.hostname1.set-hostname" ||
|
|
action.id == "org.gnome.controlcenter.datetime.configure") &&
|
|
subject.local &&
|
|
subject.active &&
|
|
subject.isInGroup ("wheel")) {
|
|
return polkit.Result.YES;
|
|
}
|
|
});
|