From e24e4b86b5c3dc4a59ab841722273cd8769ccfd2 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 6 Mar 2009 11:44:33 +0000 Subject: Banned profiles are now hidden git-svn-id: https://code.elgg.org/elgg/trunk@3111 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/index.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mod') 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; -- cgit v1.2.3