aboutsummaryrefslogblamecommitdiffstats
path: root/community/modemmanager/modemmanager.rules
blob: 6b4a95fbc89cfbba5164ad4fd1265801d51d5002 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                                                 



                                                                       




                                                         
// Let users in plugdev group modify ModemManager
polkit.addRule(function(action, subject) {
    if ((action.id == "org.freedesktop.ModemManager1.Device.Control" ||
	action.id == "org.freedesktop.ModemManager1.Contacts" ||
	action.id == "org.freedesktop.ModemManager1.Messaging" ||
	action.id == "org.freedesktop.ModemManager1.Location") &&
        subject.isInGroup("plugdev") && subject.active) {
        return "yes";
    }
});