Fix error in prepare() for checking group membership
This commit is contained in:
parent
2f043b74e7
commit
904d04993c
|
@ -91,7 +91,7 @@ class JoingroupAction extends Action
|
||||||
|
|
||||||
$cur = common_current_user();
|
$cur = common_current_user();
|
||||||
|
|
||||||
if ($cur->isMember($group)) {
|
if ($cur->isMember($this->group)) {
|
||||||
$this->clientError(_('You are already a member of that group'), 403);
|
$this->clientError(_('You are already a member of that group'), 403);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user