From dbd496f9014adee1d003c08366795a292cf73776 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 7 Feb 2011 14:24:35 -0500 Subject: [PATCH] hide feeds from group page if it's private-only --- .../GroupPrivateMessagePlugin.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php b/plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php index e086fe91dc..6a58ec3e21 100644 --- a/plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php +++ b/plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php @@ -478,6 +478,18 @@ class GroupPrivateMessagePlugin extends Plugin return true; } + function onStartShowExportData($action) + { + if ($action instanceof ShowgroupAction) { + $gps = Group_privacy_settings::forGroup($action->group); + + if ($gps->allow_privacy == Group_privacy_settings::ALWAYS) { + return false; + } + } + return true; + } + function onPluginVersion(&$versions) { $versions[] = array('name' => 'GroupPrivateMessage',