Logic to have group joins turn into pending joins automatically when group is set to mod; allow users to cancel their pending group requests.

This commit is contained in:
Brion Vibber
2011-03-21 16:26:41 -07:00
parent a54eb0941e
commit 471a480587
7 changed files with 316 additions and 6 deletions

View File

@@ -366,7 +366,7 @@ class Router
$m->connect('group/new', array('action' => 'newgroup'));
foreach (array('edit', 'join', 'leave', 'delete') as $v) {
foreach (array('edit', 'join', 'leave', 'delete', 'cancel') as $v) {
$m->connect('group/:nickname/'.$v,
array('action' => $v.'group'),
array('nickname' => Nickname::DISPLAY_FMT));