Skip to content

Commit

Permalink
fix for pgsql bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yandod committed Aug 6, 2013
1 parent 4670e6c commit fbd2411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Model/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ function allowed_to_condition($user, $permission, $options=array()) {
$emName = $perm['project_module'];

$ds = $this->getDataSource();
$base_statement[] = array("EXISTS (SELECT em.id FROM {$enabledModuleTable} em WHERE em.name='{$emName}' AND em.project_id = {$ds->startQuote}{$projectTable}{$ds->endQuote}.{$ds->startQuote}id{$ds->endQuote})" => true);
$base_statement[] = array("EXISTS (SELECT em.id FROM {$enabledModuleTable} em WHERE em.name='{$emName}' AND em.project_id = {$ds->startQuote}{$projectTable}{$ds->endQuote}.{$ds->startQuote}id{$ds->endQuote})");
}
if(!empty($options['project'])) {
$project_statement = array();
Expand Down

0 comments on commit fbd2411

Please sign in to comment.