aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Duchateau <olivierd@FreeBSD.org>2016-08-23 15:36:58 +0000
committerOlivier Duchateau <olivierd@FreeBSD.org>2016-08-23 15:36:58 +0000
commit1b88211c11d46e08b13687328e43f6c89aa54678 (patch)
tree73856e665274284aae6eb50f3426a32db5ab09f9
parent07b9874f41f50b98a75316be4655584810deef4b (diff)
downloadports-1b88211c11d46e08b13687328e43f6c89aa54678.tar.gz
ports-1b88211c11d46e08b13687328e43f6c89aa54678.zip
MFH: r420679
Add missing braces in polkit example rules. PR: 212061 Submitted by: <yuri@rawbw.com> Approved by: portmgr (feld@)
Notes
Notes: svn path=/branches/2016Q3/; revision=420702
-rw-r--r--x11-wm/xfce4-session/files/pkg-message.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/x11-wm/xfce4-session/files/pkg-message.in b/x11-wm/xfce4-session/files/pkg-message.in
index 64308c860d19..85e1199bdd53 100644
--- a/x11-wm/xfce4-session/files/pkg-message.in
+++ b/x11-wm/xfce4-session/files/pkg-message.in
@@ -3,8 +3,8 @@ files in %%LOCALBASE%%/etc/polkit-1/rules.d directory. Which looks
like this (replace PUTYOURGROUPHERE by your group):
polkit.addRule(function (action, subject) {
- if (action.id == "org.freedesktop.consolekit.system.restart" ||
- action.id == "org.freedesktop.consolekit.system.stop"
+ if ((action.id == "org.freedesktop.consolekit.system.restart" ||
+ action.id == "org.freedesktop.consolekit.system.stop")
&& subject.isInGroup("PUTYOURGROUPHERE")) {
return polkit.Result.YES;
}