|
@ -11,7 +11,8 @@ |
|
|
polkit.addRule(function(action, subject) { |
|
|
polkit.addRule(function(action, subject) { |
|
|
if (action.id == "org.freedesktop.systemd1.manage-units") { |
|
|
if (action.id == "org.freedesktop.systemd1.manage-units") { |
|
|
if (subject.user == "acmed") { |
|
|
if (subject.user == "acmed") { |
|
|
if (action.lookup("verb") == "restart") { |
|
|
|
|
|
|
|
|
var verb = action.lookup("verb"); |
|
|
|
|
|
if (verb == "reload" || verb == "restart" || verb == "try-restart" || verb == "reload-or-restart" || verb == "try-reload-or-restart") { |
|
|
return polkit.Result.YES; |
|
|
return polkit.Result.YES; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|