aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/access.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-13 22:59:43 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-13 22:59:43 +0000
commitbda4f8190d4add0a2e2cfcdf3e842b26665f4117 (patch)
treeb1b4bdee5f8ca3bdc7fa1657b894cc694fd61367 /engine/lib/access.php
parent0ee6d7c936b930d846919e72c70f21c7f0e1d9ac (diff)
downloadelgg-bda4f8190d4add0a2e2cfcdf3e842b26665f4117.tar.gz
elgg-bda4f8190d4add0a2e2cfcdf3e842b26665f4117.tar.bz2
Standardized users and entities.
Fleshed out elgg_set_ignore_access() and elgg_get_ignore_access() git-svn-id: http://code.elgg.org/elgg/trunk@3533 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 c3f5b7f0a..0942c2e61 100644
--- a/engine/lib/access.php
+++ b/engine/lib/access.php
@@ -142,7 +142,7 @@ function get_access_array($user_id = 0, $site_id = 0, $flush = false) {
}
}
- $ignore_access = elgg_is_ignore_access($user_id);
+ $ignore_access = elgg_check_access_overrides($user_id);
if ($ignore_access == true) {
$tmp_access_array[] = ACCESS_PRIVATE;
@@ -799,7 +799,7 @@ function elgg_get_ignore_access() {
*
* @return bool
*/
-function elgg_is_ignore_access($user_guid = null) {
+function elgg_check_access_overrides($user_guid = null) {
if (!$user_guid || $user_guid <= 0) {
$is_admin = false;
} else {
@@ -837,4 +837,4 @@ function access_init() {
}
// This function will let us know when 'init' has finished
-register_elgg_event_handler('init','system','access_init',9999); \ No newline at end of file
+register_elgg_event_handler('init', 'system', 'access_init', 9999); \ No newline at end of file