Permissions, shutdown route

This commit is contained in:
Jack Mechem 2026-03-30 19:53:55 -07:00
parent 15d0d174a9
commit ac01c03094
4 changed files with 31 additions and 1 deletions

View file

@ -107,7 +107,8 @@
security.polkit.extraConfig = ''
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.systemd1.manage-units" ||
action.id == "org.freedesktop.login1.reboot") &&
action.id == "org.freedesktop.login1.reboot" ||
action.id == "org.freedesktop.login1.power-off") &&
subject.user == "server-dash-api") {
return polkit.Result.YES;
}