aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/access.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-04 16:49:38 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-04 16:49:38 +0000
commitd8d330a7c40975fce62e0fc6b5473ff6844f6384 (patch)
treee4b1d0d587c238d389733d2439d1e8f9d97fbae2 /engine/lib/access.php
parent467d6a48a319955fe150d5f9895241ed3d70622b (diff)
downloadelgg-d8d330a7c40975fce62e0fc6b5473ff6844f6384.tar.gz
elgg-d8d330a7c40975fce62e0fc6b5473ff6844f6384.tar.bz2
Access improvements on granular notifications
git-svn-id: https://code.elgg.org/elgg/trunk@2649 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/access.php')
-rw-r--r--engine/lib/access.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/access.php b/engine/lib/access.php
index 02ca5906a..7770e0745 100644
--- a/engine/lib/access.php
+++ b/engine/lib/access.php
@@ -70,9 +70,9 @@
$query .= " LEFT JOIN {$CONFIG->dbprefix}access_collections ag ON ag.id = am.access_collection_id ";
$query .= " WHERE am.user_guid = {$user_id} AND (ag.site_guid = {$site_id} OR ag.site_guid = 0)";
- $tmp_access_array = array(2);
+ $tmp_access_array = array(ACCESS_PUBLIC);
if (isloggedin()) {
- $tmp_access_array[] = 1;
+ $tmp_access_array[] = ACCESS_LOGGED_IN;
// The following can only return sensible data if the user is logged in.
@@ -94,7 +94,7 @@
global $is_admin;
if (isset($is_admin) && $is_admin == true) {
- $tmp_access_array[] = 0;
+ $tmp_access_array[] = ACCESS_PRIVATE;
}
$access_array[$user_id] = $tmp_access_array;