summaryrefslogtreecommitdiff
path: root/lib/groupnav.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-06-14 16:17:44 -0700
committerEvan Prodromou <evan@controlyourself.ca>2009-06-14 16:17:44 -0700
commitf8da15bf41b07a46b1fbe5323e2b8136d42c5b31 (patch)
tree987d684517add55c4f344031dc2f1a1fa589375f /lib/groupnav.php
parentbd26a80d45542c6b42f56ecf5472198f4600618b (diff)
Allow users to be unblocked from a group
List users who are blocked from joining a group. Add a form to let them be unblocked. Add an action that removes the block. Includes changes to group and groupblock classes.
Diffstat (limited to 'lib/groupnav.php')
-rw-r--r--lib/groupnav.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/groupnav.php b/lib/groupnav.php
index 90bdc1014..194247982 100644
--- a/lib/groupnav.php
+++ b/lib/groupnav.php
@@ -95,6 +95,12 @@ class GroupNav extends Widget
$cur = common_current_user();
if ($cur && $cur->isAdmin($this->group)) {
+ $this->out->menuItem(common_local_url('blockedfromgroup', array('nickname' =>
+ $nickname)),
+ _('Blocked'),
+ sprintf(_('%s blocked users'), $nickname),
+ $action_name == 'blockedfromgroup',
+ 'nav_group_blocked');
$this->out->menuItem(common_local_url('editgroup', array('nickname' =>
$nickname)),
_('Admin'),