void-packages/srcpkgs/NetworkManager/files/50-org.freedesktop.NetworkManager.rules
Enno Boland e9edb25850 NetworkManager: add rules for policykit
allows members of the group 'network' to access NetworkManager.
2020-05-05 14:09:24 +02:00

6 lines
176 B
Plaintext

polkit.addRule(function(action, subject) {
if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("network")) {
return polkit.Result.YES;
}
});