// 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";
    }
});