aboutsummaryrefslogtreecommitdiff
path: root/x11-wm
diff options
context:
space:
mode:
authorOlivier Duchateau <olivierd@FreeBSD.org>2016-08-23 14:12:59 +0000
committerOlivier Duchateau <olivierd@FreeBSD.org>2016-08-23 14:12:59 +0000
commit2366fc9170e3614c152fb8d51e795963182f8b47 (patch)
tree7b2eb107e48d01e4cff76772af2a171b2a54e2bd /x11-wm
parentc0eeeb0ae996596acd48c3eea47c53f2ad4cad60 (diff)
downloadports-2366fc9170e3614c152fb8d51e795963182f8b47.tar.gz
ports-2366fc9170e3614c152fb8d51e795963182f8b47.zip
Add missing braces in polkit example rules.
PR: 212061 Submitted by: <yuri@rawbw.com> MFH: 2016Q3
Notes
Notes: svn path=/head/; revision=420679
Diffstat (limited to 'x11-wm')
-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;
}