aboutsummaryrefslogtreecommitdiffstats
path: root/community/networkmanager-elogind/networkmanager.rules
blob: 66d21d6bbde3ddb8adf5c05ec74584c4eb17a2a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
// Let users in plugdev group modify NetworkManager
polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.NetworkManager.settings.modify.system" &&
        subject.isInGroup("plugdev") && subject.active) {
        return "yes";
    }
});