Fixes pid/uid mixed up error.
[platal.git] / modules / profile.php
index f055c30..b737ac6 100644 (file)
@@ -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()) {