␊ |
if ($user->isAnonymous())␊ |
{␊ |
$authSql = new Pluf_SQL($db->qn('private').'=%s', $false);␊ |
$authSql = new Pluf_SQL($db->qn('private').'='.$false);␊ |
$sql->SAnd($authSql);␊ |
} else␊ |
if (!$user->administrator) {␊ |
|
$permSql = new Pluf_SQL("model_class='IDF_Project' AND owner_class='Pluf_User' AND owner_id=%s AND negative=".$false, $user->id);␊ |
$rows = Pluf::factory('Pluf_RowPermission')->getList(array('filter' => $permSql->gen()));␊ |
␊ |
$authSql = new Pluf_SQL($db->qn('private').'=%s', $false);␊ |
$authSql = new Pluf_SQL($db->qn('private').'='.$false);␊ |
if ($rows->count() > 0) {␊ |
$ids = array();␊ |
foreach ($rows as $row) {␊ |