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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
201 B
Plaintext
Raw Normal View History

2018-11-18 00:45:08 +08:00
polkit.addRule(function(action, subject) {
if (action.id == "com.zoneminder.policykit.pkexec.run-zmsystemctl" &&
subject.user != "@WEB_USER@") {
return polkit.Result.NO;
}
});