mirror of
git://slackware.nl/current.git
synced 2024-12-31 10:28:29 +01:00
11 lines
436 B
Text
11 lines
436 B
Text
|
/* Allow users in netdev group to use blueman feature requiring root without authentication */
|
||
|
polkit.addRule(function(action, subject) {
|
||
|
if ((action.id == "org.blueman.network.setup" ||
|
||
|
action.id == "org.blueman.dhcp.client" ||
|
||
|
action.id == "org.blueman.rfkill.setstate" ||
|
||
|
action.id == "org.blueman.pppd.pppconnect") &&
|
||
|
subject.isInGroup("netdev")) {
|
||
|
return polkit.Result.YES;
|
||
|
}
|
||
|
});
|