Add a basic group deletion for moderator users.

This commit is contained in:
Brion Vibber
2010-10-12 15:49:20 -07:00
parent bc0d7f14db
commit f4f16af8ac
6 changed files with 358 additions and 1 deletions

View File

@@ -276,7 +276,7 @@ class Router
$m->connect('group/new', array('action' => 'newgroup'));
foreach (array('edit', 'join', 'leave') as $v) {
foreach (array('edit', 'join', 'leave', 'delete') as $v) {
$m->connect('group/:nickname/'.$v,
array('action' => $v.'group'),
array('nickname' => '[a-zA-Z0-9]+'));