Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | /* give group 'datetime' rights to change settings */ |
2 | /* based upon http://lists.freedesktop.org/archives/systemd-devel/2013-March/009576.html */ | ||||
3 | |||||
4 | polkit.addRule(function(action, subject) { | ||||
5 | if (action.id.indexOf("org.freedesktop.timedate1.") == 0 && subject.isInGroup("datetime")) { | ||||
6 | return polkit.Result.YES; | ||||
7 | } | ||||
8 | }); |