aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-07-07 15:09:53 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-07-07 15:09:53 +0000
commiteca0feb9a0380fb1e700af0d183f295fef55a05b (patch)
treefb08f59221593f93149ab9e01914e062cf1ea203 /engine
parent8276e36bced4d6ea99b6aaea29f59b0252cd15f7 (diff)
downloadelgg-eca0feb9a0380fb1e700af0d183f295fef55a05b.tar.gz
elgg-eca0feb9a0380fb1e700af0d183f295fef55a05b.tar.bz2
Refs #1099: Using write access hook to allow group-only ACLs. Need to examine better solutions after 1.7.
git-svn-id: https://code.elgg.org/elgg/trunk@3395 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/access.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/lib/access.php b/engine/lib/access.php
index aace86335..c97149582 100644
--- a/engine/lib/access.php
+++ b/engine/lib/access.php
@@ -100,15 +100,16 @@
$access_array[$user_id] = $tmp_access_array;
}
else
- return $tmp_access_array; // No user id logged in so we can only access public info
+ $tmp_return = $tmp_access_array; // No user id logged in so we can only access public info
} else {
$tmp_access_array = $access_array[$user_id];
}
- return $access_array[$user_id];
+ $tmp_return = $access_array[$user_id];
+ return trigger_plugin_hook('access:collections:read','user',array('user_id' => $user_id, 'site_id' => $site_id),$tmp_access_array);
}
/**