Skip to content
This repository has been archived by the owner on May 19, 2021. It is now read-only.

Commit

Permalink
let all users use netctl, not just wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
PonasKovas committed Sep 22, 2019
1 parent 6e88895 commit 29afb15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/netctl-tray.rules
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.systemd1.manage-units") {
var netctlInstanceMatcher = /netctl@[a-z,\\,\d]+\.service/i.test(action.lookup("unit"));
if (netctlInstanceMatcher && subject.isInGroup("wheel")) {
if (netctlInstanceMatcher) {
var verb = action.lookup("verb");
if (verb == "start" || verb == "stop" || verb == "restart") {
return polkit.Result.YES;
Expand Down

0 comments on commit 29afb15

Please sign in to comment.