summaryrefslogtreecommitdiffstats
path: root/panels/common/gnome-control-center.rules.in
diff options
context:
space:
mode:
Diffstat (limited to 'panels/common/gnome-control-center.rules.in')
-rw-r--r--panels/common/gnome-control-center.rules.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/panels/common/gnome-control-center.rules.in b/panels/common/gnome-control-center.rules.in
new file mode 100644
index 0000000..971ffac
--- /dev/null
+++ b/panels/common/gnome-control-center.rules.in
@@ -0,0 +1,12 @@
+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 ("@PRIVILEGED_GROUP@")) {
+ return polkit.Result.YES;
+ }
+});