From f4f16af8ac6c2bb1d5561bd85b4908fd3f9e1dbb Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 12 Oct 2010 15:49:20 -0700 Subject: Add a basic group deletion for moderator users. --- actions/showgroup.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'actions/showgroup.php') 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'); } -- cgit v1.2.3-54-g00ecf