Commit 3fc5c9ef authored by Andrew Savchenko's avatar Andrew Savchenko Committed by Anton Midyukov

phone: Add phone-friendly polkit rules

Allow typical phone actions without password.
parent 4fdea960
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.ModemManager1.Contacts" ||
action.id == "org.freedesktop.ModemManager1.Device.Control" ||
action.id == "org.freedesktop.ModemManager1.Location" ||
action.id == "org.freedesktop.ModemManager1.Messaging" ||
action.id == "org.freedesktop.ModemManager1.Time" ||
action.id == "org.freedesktop.ModemManager1.USSD" ||
action.id == "org.freedesktop.ModemManager1.Voice")
{
return polkit.Result.YES;
}
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment