X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fprofile.php;h=b737ac61b832835bde8dd58b5e937bb8c180b2ee;hb=245923e335d0da5bec9495991a7846be9f0563ab;hp=f85558e4448f11d14945e8fa26dbe18f84448f79;hpb=da40b2a4216f093da983f3ec6f7d9e9cf9497e2d;p=platal.git diff --git a/modules/profile.php b/modules/profile.php index f85558e..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()) { @@ -607,7 +604,7 @@ class ProfileModule extends PLModule FROM group_members AS m INNER JOIN groups AS a ON(m.asso_id = a.id) LEFT JOIN group_events AS e ON(e.asso_id = m.asso_id AND e.archive = 0) - WHERE uid = {?} GROUP BY m.asso_id ORDER BY a.nom', S::i('uid')); + WHERE m.uid = {?} GROUP BY m.asso_id ORDER BY a.nom', S::i('uid')); $page->assign('assos', $req->fetchAllAssoc()); }