mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
12 lines
351 B
Text
12 lines
351 B
Text
|
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;
|
||
|
}
|
||
|
});
|