Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- polkit.addRule(function(action, subject) {
- if ((action.id == "org.freedesktop.login1.reboot" ||
- action.id == "org.freedesktop.login1.power-off" ||
- action.id == "org.freedesktop.login1.suspend" ||
- action.id == "org.freedesktop.login1.hibernate") &&
- subject.isInGroup("wheel")) {
- return polkit.Result.YES;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment