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