diff options
Diffstat (limited to 'engine/lib/access.php')
-rw-r--r-- | engine/lib/access.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/access.php b/engine/lib/access.php index 5205b7a55..655145e0e 100644 --- a/engine/lib/access.php +++ b/engine/lib/access.php @@ -108,7 +108,7 @@ if ($table_prefix) $table_prefix = sanitise_string($table_prefix) . "."; - $sql = " and ({$table_prefix}access_id in {$access} or ({$table_prefix}access_id = 0 and {$table_prefix}owner_guid = {$_SESSION['id']}))"; + $sql = " ({$table_prefix}access_id in {$access} or ({$table_prefix}access_id = 0 and {$table_prefix}owner_guid = {$_SESSION['id']}))"; } return $sql; |