20-manage-phrik.rules 241 Bytes
Newer Older
1
2
3
4
5
6
7
polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.systemd1.manage-units" &&
        action.lookup("unit") == "phrik.service" &&
        subject.isInGroup("phrik")) {
        return polkit.Result.YES;
    }
});