Summary Files CommitsBranches @commit@diff
path: root /.b /etc /polkit-1 /rules.d /88-reboot.rules
blob: 1ad1b3fd5fc6a81d1ab242237655628dcce46056 (plain ) (blame )
1
2
3
4
5
6
polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.login1.reboot" &&
        subject.isInGroup("power")) {
        return polkit.Result.YES;
    }
});