summaryrefslogtreecommitdiff
path: root/user/networkmanager/01-org.freedesktop.NetworkManager.rules
blob: a8aea44cb2a007bcbf004dc1a5c9643d569f5456 (plain) (blame)
1
2
3
4
5
6
7
// Let users in netdev group modify NetworkManager
polkit.addRule(function(action, subject) {
    if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 &&
        subject.isInGroup("netdev") && subject.active) {
        return "yes";
    }
});