From f8d13817174a63dc8452ed60a00b7d336633fa88 Mon Sep 17 00:00:00 2001 From: Adrian Lang Date: Sun, 8 Mar 2009 01:30:11 +0100 Subject: Corrected redirect targets for some group actions. These redirects can occur when the canonical name differs from the passed name. --- actions/leavegroup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actions/leavegroup.php') diff --git a/actions/leavegroup.php b/actions/leavegroup.php index c7152e3c0..1d85aa3d5 100644 --- a/actions/leavegroup.php +++ b/actions/leavegroup.php @@ -73,7 +73,7 @@ class LeavegroupAction extends Action if ($nickname_arg != $nickname) { $args = array('nickname' => $nickname); - common_redirect(common_local_url('editgroup', $args), 301); + common_redirect(common_local_url('leavegroup', $args), 301); return false; } -- cgit v1.2.3-54-g00ecf From 7d7d78b7f7a5065a866468c2e8b5bd536f56611a Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 7 Mar 2009 17:43:59 -0800 Subject: you can _so_ leave a group if you're its admin --- actions/leavegroup.php | 6 ------ 1 file changed, 6 deletions(-) (limited to 'actions/leavegroup.php') diff --git a/actions/leavegroup.php b/actions/leavegroup.php index 1d85aa3d5..eb30d0e50 100644 --- a/actions/leavegroup.php +++ b/actions/leavegroup.php @@ -96,12 +96,6 @@ class LeavegroupAction extends Action return false; } - if ($cur->isAdmin($this->group)) { - $this->clientError(_('You may not leave a group while you are its administrator.'), 403); - return false; - - } - return true; } -- cgit v1.2.3-54-g00ecf