aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-07-01 22:28:56 -0400
committerCash Costello <cash.costello@gmail.com>2012-07-01 22:28:56 -0400
commitbcd5b0e59e4ea7191475e30397578859315cf2bb (patch)
treed2de2dfbf1454d43c27fe82fefa70b3209bd3206 /engine/lib/elgglib.php
parentc593ca648683688fe89ab6f7ebc39e1c8471af18 (diff)
downloadelgg-bcd5b0e59e4ea7191475e30397578859315cf2bb.tar.gz
elgg-bcd5b0e59e4ea7191475e30397578859315cf2bb.tar.bz2
Fixes #3955 removes public access from walled gardens - maintains groups functionality
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 0c42c1c08..3026a78e3 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -2098,6 +2098,22 @@ function elgg_walled_garden() {
}
/**
+ * Remove public access for walled gardens
+ *
+ * @param string $hook
+ * @param string $type
+ * @param array $accesses
+ * @return array
+ * @access private
+ */
+function _elgg_walled_garden_remove_public_access($hook, $type, $accesses) {
+ if (isset($accesses[ACCESS_PUBLIC])) {
+ unset($accesses[ACCESS_PUBLIC]);
+ }
+ return $accesses;
+}
+
+/**
* Boots the engine
*
* 1. sets error handlers