diff options
| -rw-r--r-- | modules/org.freedesktop.machine1.host-shell.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/org.freedesktop.machine1.host-shell.nix b/modules/org.freedesktop.machine1.host-shell.nix index 1556ccf..3491453 100644 --- a/modules/org.freedesktop.machine1.host-shell.nix +++ b/modules/org.freedesktop.machine1.host-shell.nix @@ -20,9 +20,11 @@ polkit.addRule(function () { const access = ${builtins.toJSON cfg.access}; return function (action, subject) { - if (action.id === "org.freedesktop.machine1.host-shell" - && (access[subject.user]||{})[action.lookup("user")]) - return polkit.Result.YES; + if (action.id === "org.freedesktop.machine1.host-shell") { + if ((access[subject.user]||{})[action.lookup("user")]) { + return polkit.Result.YES; + } + } } }()); ''; |
