diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-21 13:43:27 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-21 13:43:27 +0000 |
commit | d8a0b9c1fa81f107bf8fbe18540f12e99a87deed (patch) | |
tree | 0c947134402b749c7b7b296bc734356468d0656c /engine/lib/access.php | |
parent | 4549c978b84c61c78d2d5001ffa59017de2286b6 (diff) | |
download | elgg-d8a0b9c1fa81f107bf8fbe18540f12e99a87deed.tar.gz elgg-d8a0b9c1fa81f107bf8fbe18540f12e99a87deed.tar.bz2 |
Fixes #175
git-svn-id: https://code.elgg.org/elgg/trunk@1482 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/access.php')
-rw-r--r-- | engine/lib/access.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engine/lib/access.php b/engine/lib/access.php index f5e12541a..8600fc719 100644 --- a/engine/lib/access.php +++ b/engine/lib/access.php @@ -118,9 +118,12 @@ //if (!is_privileged())
//{
- $access = get_access_list();
+ $access = get_access_list(); + + $owner = $_SESSION['id']; + if (!$owner) $owner = -1;
- $sql = " ({$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 = $owner))";
//}
//else
// $sql = " 1 ";
|