From bda4f8190d4add0a2e2cfcdf3e842b26665f4117 Mon Sep 17 00:00:00 2001 From: brettp Date: Tue, 13 Oct 2009 22:59:43 +0000 Subject: 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 --- engine/lib/access.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engine/lib/access.php') 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 -- cgit v1.2.3