Skip to content

Commit ef368ac

Browse files
committed
fix: add missing == 0 to polkit rules
1 parent 63043b9 commit ef368ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
security.polkit.extraConfig = ''
184184
polkit.addRule(function(action, subject) {
185185
if (action.id == "org.freedesktop.policykit.exec" ||
186-
action.id.indexOf("org.freedesktop.systemd1.") {
186+
action.id.indexOf("org.freedesktop.systemd1.") == 0) {
187187
return polkit.Result.AUTH_ADMIN_KEEP;
188188
}
189189
});

0 commit comments

Comments
 (0)