summaryrefslogblamecommitdiff
path: root/user/modemmanager/01-org.freedesktop.ModemManager.rules
blob: c57f4c55cd463db51b63151e70968ff03ed01d5a (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                                             
// Let users in either 'plugdev' or 'dialout' control ModemManager
polkit.addRule(function(action, subject) {
    if (/^org\.freedesktop\.ModemManager1\.(Device\.Control|Contacts|Messaging|Location)$/.test(action.id) &&
        (subject.isInGroup("plugdev") || subject.isInGroup("dialout")) && subject.active) {
        return "yes";
    }
});