Commit 88eeb8cb authored by Kalev Lember's avatar Kalev Lember

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
parent 8b2eec6f
......@@ -2,7 +2,8 @@ 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.freedesktop.hostname1.set-hostname" ||
action.id == "org.gnome.controlcenter.datetime.configure") &&
subject.local &&
subject.active &&
subject.isInGroup ("wheel")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment