Commit 6813bff9 authored by Christian Kellner's avatar Christian Kellner

policy: admins can manage devices w/out passwords

Now manage as the same policy rules as authorize and enroll actions.
parent d70b77bd
// -*- mode: js2 -*-
polkit.addRule(function(action, subject) {
if ((action.id === "org.freedesktop.bolt.enroll" ||
action.id === "org.freedesktop.bolt.authorize") &&
action.id === "org.freedesktop.bolt.authorize" ||
action.id === "org.freedesktop.bolt.manage") &&
subject.active === true && subject.local === true &&
subject.isInGroup("@privileged_group@")) {
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