2018-03-27 20:03:01 +00:00
|
|
|
polkit.addRule(function(action, subject) {
|
|
|
|
if ((action.id == "org.freedesktop.NetworkManager.settings.modify.system" ||
|
2019-04-09 19:21:12 +00:00
|
|
|
action.id == "org.freedesktop.machine1.shell" ||
|
2018-03-27 20:03:01 +00:00
|
|
|
action.id == "org.freedesktop.machine1.host-open-pty") &&
|
|
|
|
subject.local && subject.isInGroup("citadel")) {
|
|
|
|
return polkit.Result.YES;
|
|
|
|
}
|
|
|
|
});
|