diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-14 15:47:39 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-14 15:47:39 -0700 |
commit | 1c87532912b63effc047da2913e55a6551d8f629 (patch) | |
tree | caafcfed82f352f28c237e98e4c55c07628e1c2a /actions/joingroup.php | |
parent | d3a0c524cce9be65b8e45280168cf3584a60f81c (diff) |
The rest of the things necessary to make group block work
Link to the group block form. Hide join button if the current user is
blocked.
Diffstat (limited to 'actions/joingroup.php')
-rw-r--r-- | actions/joingroup.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actions/joingroup.php b/actions/joingroup.php index a5d82ddc7..0e4f96eaf 100644 --- a/actions/joingroup.php +++ b/actions/joingroup.php @@ -96,6 +96,11 @@ class JoingroupAction extends Action return false; } + if (Group_block::isBlocked($this->group, $cur->getProfile())) { + $this->clientError(_('You have been blocked from that group by the admin.'), 403); + return false; + } + return true; } |