From: Florent Bruneau Date: Wed, 6 Oct 2010 14:00:57 +0000 (+0200) Subject: Don't redirect to the marketing page when trying to view the profile X-Git-Tag: xorg/1.0.1~89 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=483c3b773791dfffa052c2cf80904861b432242f;p=platal.git Don't redirect to the marketing page when trying to view the profile of a not-registered user. Signed-off-by: Florent Bruneau --- diff --git a/modules/profile.php b/modules/profile.php index f055c30..b737ac6 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -262,9 +262,6 @@ class ProfileModule extends PLModule // marketing if the owner has not subscribed and the requirer has logged in. $profile = Profile::get($pid, Profile::FETCH_ALL, $view); $owner = $profile->owner(); - if (S::logged() && !is_null($owner) && $owner->state == 'pending') { - pl_redirect('marketing/public/' . $profile->hrid()); - } // Profile view are logged. if (S::logged()) {