diff options
Diffstat (limited to 'community/modemmanager/modemmanager.rules')
-rw-r--r-- | community/modemmanager/modemmanager.rules | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/community/modemmanager/modemmanager.rules b/community/modemmanager/modemmanager.rules index 09e586e642..6b4a95fbc8 100644 --- a/community/modemmanager/modemmanager.rules +++ b/community/modemmanager/modemmanager.rules @@ -1,6 +1,9 @@ // Let users in plugdev group modify ModemManager polkit.addRule(function(action, subject) { - if (/^org\.freedesktop\.ModemManager1\.(Device\.Control|Contacts|Messaging|Location)$/.test(action.id) && + 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"; } |