zoneminder/distros/redhat/httpd/com.zoneminder.systemctl.ru...

8 lines
201 B
Plaintext

polkit.addRule(function(action, subject) {
if (action.id == "com.zoneminder.policykit.pkexec.run-zmsystemctl" &&
subject.user != "@WEB_USER@") {
return polkit.Result.NO;
}
});