Correctly handle --with-privileged-group

This commit is contained in:
Alexander Larsson
2016-05-24 14:13:34 +02:00
parent 949d4eccf7
commit cb41e1bdba

View File

@@ -2,7 +2,7 @@ polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.Flatpak.app-install" ||
action.id == "org.freedesktop.Flatpak.runtime-install") &&
subject.active == true && subject.local == true &&
subject.isInGroup("wheel")) {
subject.isInGroup("@privileged_group@")) {
return polkit.Result.YES;
}
});