summarylogtreecommitdiffstats
path: root/02-allow-colord.rules
blob: ff376fad993d3066b8136d7f4f92802b354417bd (plain)
1
2
3
4
5
6
7
8
9
10
11
polkit.addRule(function (action, subject) {
  if ((action.id == "org.freedesktop.color-manager.create-device" ||
    action.id == "org.freedesktop.color-manager.modify-profile" ||
    action.id == "org.freedesktop.color-manager.delete-device" ||
    action.id == "org.freedesktop.color-manager.create-profile" ||
    action.id == "org.freedesktop.color-manager.modify-profile" ||
    action.id == "org.freedesktop.color-manager.delete-profile") &&
    subject.isInGroup("users")) {
    return polkit.Result.YES;
  }
});