Fixed the listing of the projects in the public profile view.

This commit is contained in:
Loic d'Anterroches 2008-11-26 22:29:10 +01:00
parent ed40edf594
commit 71461299bc

View File

@ -65,7 +65,7 @@ class IDF_Views_User
*/ */
public function view($request, $match) public function view($request, $match)
{ {
$projects = Pluf::factory('IDF_Project')->getList(); $projects = IDF_Views::getProjects($request->user);
$sql = new Pluf_SQL('login=%s', array($match[1])); $sql = new Pluf_SQL('login=%s', array($match[1]));
$users = Pluf::factory('Pluf_User')->getList(array('filter'=>$sql->gen())); $users = Pluf::factory('Pluf_User')->getList(array('filter'=>$sql->gen()));
if (count($users) != 1 or !$users[0]->active) { if (count($users) != 1 or !$users[0]->active) {