summaryrefslogtreecommitdiffstats
path: root/panels/common/gnome-control-center.rules.in
blob: 22cf785e0971682339c9fc7a059a905952938b60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
polkit.addRule(function(action, subject) {
	if ((action.id == "org.freedesktop.locale1.set-locale" ||
	     action.id == "org.freedesktop.locale1.set-keyboard" ||
	     action.id == "org.freedesktop.ModemManager1.Device.Control" ||
	     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;
	    }
});