gnome-control-center/panels/common/gnome-control-center.rules
Kalev Lember 88eeb8cb2d common: Ship a PolicyKit rule for the datetime panel
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
2013-08-19 15:09:05 +01:00

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;
}
});