X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fgroupqueue.php;h=c50eff36f83c5bc9279bacdc5d3095db15000ec0;hb=0463d96392abd1976486c1ae53ece8466e930e29;hp=7227b1109029dc75b169c9ef454147b4b815d0cb;hpb=c0f65f6ea76ffa035cbf2c4126bedaae9d8752c8;p=quix0rs-gnu-social.git diff --git a/actions/groupqueue.php b/actions/groupqueue.php index 7227b11090..c50eff36f8 100644 --- a/actions/groupqueue.php +++ b/actions/groupqueue.php @@ -69,13 +69,11 @@ class GroupqueueAction extends GroupAction $args['page'] = $this->page; } common_redirect(common_local_url('groupqueue', $args), 301); - return false; } if (!$nickname) { // TRANS: Client error displayed when trying to view group members without providing a group nickname. $this->clientError(_('No nickname.'), 404); - return false; } $local = Local_group::getKV('nickname', $nickname); @@ -83,7 +81,6 @@ class GroupqueueAction extends GroupAction if (!$local) { // TRANS: Client error displayed when trying to view group members for a non-existing group. $this->clientError(_('No such group.'), 404); - return false; } $this->group = User_group::getKV('id', $local->group_id); @@ -91,14 +88,12 @@ class GroupqueueAction extends GroupAction if (!$this->group) { // TRANS: Client error displayed when trying to view group members for an object that is not a group. $this->clientError(_('No such group.'), 404); - return false; } $cur = common_current_user(); if (!$cur || !$cur->isAdmin($this->group)) { // TRANS: Client error displayed when trying to approve group applicants without being a group administrator. $this->clientError(_('Only the group admin may approve users.')); - return false; } return true; }