diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-14 16:17:44 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-14 16:17:44 -0700 |
commit | f8da15bf41b07a46b1fbe5323e2b8136d42c5b31 (patch) | |
tree | 987d684517add55c4f344031dc2f1a1fa589375f /lib/router.php | |
parent | bd26a80d45542c6b42f56ecf5472198f4600618b (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/router.php')
-rw-r--r-- | lib/router.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/router.php b/lib/router.php index 3d870e565..e10871bc0 100644 --- a/lib/router.php +++ b/lib/router.php @@ -101,7 +101,8 @@ class Router $main = array('login', 'logout', 'register', 'subscribe', 'unsubscribe', 'confirmaddress', 'recoverpassword', 'invite', 'favor', 'disfavor', 'sup', - 'block', 'unblock', 'subedit', 'groupblock'); + 'block', 'unblock', 'subedit', + 'groupblock', 'groupunblock'); foreach ($main as $a) { $m->connect('main/'.$a, array('action' => $a)); @@ -228,6 +229,10 @@ class Router array('nickname' => '[a-zA-Z0-9]+')); } + $m->connect('group/:nickname/blocked', + array('action' => 'blockedfromgroup'), + array('nickname' => '[a-zA-Z0-9]+')); + $m->connect('group/:id/id', array('action' => 'groupbyid'), array('id' => '[0-9]+')); |