diff options
Diffstat (limited to 'mod/profile')
-rw-r--r-- | mod/profile/index.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/profile/index.php b/mod/profile/index.php index ccf66812d..89ef89e5d 100644 --- a/mod/profile/index.php +++ b/mod/profile/index.php @@ -21,6 +21,9 @@ // Try and get the user from the username and set the page body accordingly
if ($user = get_user_by_username($username)) {
+ if ($user->isBanned() && !isadminloggedin()) {
+ forward(); exit;
+ }
$body = elgg_view_entity($user,true);
$title = $user->name; |