aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'start.php')
-rw-r--r--start.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/start.php b/start.php
index 3a78700c6..2d4d40782 100644
--- a/start.php
+++ b/start.php
@@ -49,7 +49,8 @@
if (function_exists('add_group_tool_option'))
add_group_tool_option('photos',elgg_echo('tidypics:enablephotos'),true);
- register_plugin_hook('permissions_check', 'object', 'tidypics_permission_override');
+ if (get_plugin_setting('grp_perm_override', 'tidypics') != "disabled")
+ register_plugin_hook('permissions_check', 'object', 'tidypics_permission_override');
// Register for notifications
if (is_callable('register_notification_object')) {