diff options
author | Brion Vibber <brion@pobox.com> | 2010-10-12 15:49:20 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-10-12 15:49:20 -0700 |
commit | f4f16af8ac6c2bb1d5561bd85b4908fd3f9e1dbb (patch) | |
tree | ece8435220021819467e394845d1195d0735155a /actions/showgroup.php | |
parent | bc0d7f14db27881e2dc8fad8b02ce4e2cfd19847 (diff) |
Add a basic group deletion for moderator users.
Diffstat (limited to 'actions/showgroup.php')
-rw-r--r-- | actions/showgroup.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actions/showgroup.php b/actions/showgroup.php index 17c37e4d7..9a12bafaf 100644 --- a/actions/showgroup.php +++ b/actions/showgroup.php @@ -316,6 +316,12 @@ class ShowgroupAction extends GroupDesignAction Event::handle('EndGroupSubscribe', array($this, $this->group)); } $this->elementEnd('li'); + if ($cur->hasRight(Right::DELETEGROUP)) { + $this->elementStart('li', 'entity_delete'); + $df = new DeleteGroupForm($this, $this->group); + $df->show(); + $this->elementEnd('li'); + } $this->elementEnd('ul'); $this->elementEnd('div'); } |