summaryrefslogtreecommitdiff
path: root/pcr/consolekit/01-org.freedesktop.ModemManager1.rules
blob: 38af2c8de49ebd9e1efdde6e40bff6b6d3d9714a (plain)
1
2
3
4
5
6
polkit.addRule(function(action, subject) {
    if (/^org\.freedesktop\.ModemManager1\.(Device\.Control|Contacts|Messaging|Location)$/.test(action.id) &&
        subject.isInGroup("network") && subject.active) {
        return "yes";
    }
});