diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-06 11:44:33 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-06 11:44:33 +0000 |
commit | e24e4b86b5c3dc4a59ab841722273cd8769ccfd2 (patch) | |
tree | dee433fac5382ed0274a8d35e248b4ae29cc146b /mod/profile | |
parent | d0f87eb8a30287dafe0c21b47e660552e1df5bdb (diff) | |
download | elgg-e24e4b86b5c3dc4a59ab841722273cd8769ccfd2.tar.gz elgg-e24e4b86b5c3dc4a59ab841722273cd8769ccfd2.tar.bz2 |
Banned profiles are now hidden
git-svn-id: https://code.elgg.org/elgg/trunk@3111 36083f99-b078-4883-b0ff-0f9b5a30f544
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; |