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