Another Postgres issue (hopefully fixes issue 800).
This commit is contained in:
parent
4da01b2732
commit
d1542c9c00
@ -389,7 +389,7 @@ class IDF_Views
|
|||||||
|
|
||||||
if ($user->isAnonymous())
|
if ($user->isAnonymous())
|
||||||
{
|
{
|
||||||
$authSql = new Pluf_SQL($db->qn('private').'=%s', $false);
|
$authSql = new Pluf_SQL($db->qn('private').'='.$false);
|
||||||
$sql->SAnd($authSql);
|
$sql->SAnd($authSql);
|
||||||
} else
|
} else
|
||||||
if (!$user->administrator) {
|
if (!$user->administrator) {
|
||||||
@ -403,7 +403,7 @@ class IDF_Views
|
|||||||
$permSql = new Pluf_SQL("model_class='IDF_Project' AND owner_class='Pluf_User' AND owner_id=%s AND negative=".$false, $user->id);
|
$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()));
|
$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) {
|
if ($rows->count() > 0) {
|
||||||
$ids = array();
|
$ids = array();
|
||||||
foreach ($rows as $row) {
|
foreach ($rows as $row) {
|
||||||
|
Loading…
Reference in New Issue
Block a user