We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 204b5e8a authored by Evan Prodromou's avatar Evan Prodromou

Show a little indicator for private-only groups

parent b41816fd
......@@ -457,7 +457,27 @@ class GroupPrivateMessagePlugin extends Plugin
return true;
* Show an indicator that the group is (essentially) private on the group page
* @param Action $action The action being shown
* @param User_group $group The group being shown
* @return boolean hook value
function onEndGroupProfileElements($action, $group)
$gps = Group_privacy_settings::forGroup($group);
if ($gps->allow_privacy == Group_privacy_settings::ALWAYS) {
$action->element('p', 'privategroupindicator', _('Private'));
return true;
function onPluginVersion(&$versions)
$versions[] = array('name' => 'GroupPrivateMessage',
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment