hide feeds from group page if it's private-only

This commit is contained in:
Evan Prodromou 2011-02-07 14:24:35 -05:00
parent 204b5e8a63
commit dbd496f901

View File

@ -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',