From 9366c0897f9313005d54d805a5c64e55e3b79a90 Mon Sep 17 00:00:00 2001 From: Jeroen Dalsem Date: Thu, 8 Aug 2019 13:56:17 +0200 Subject: [PATCH] chore: make sure we have access to $object during elgg call --- classes/ColdTrick/WidgetManager/Groups.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/ColdTrick/WidgetManager/Groups.php b/classes/ColdTrick/WidgetManager/Groups.php index 873ae3b..1d9c06f 100644 --- a/classes/ColdTrick/WidgetManager/Groups.php +++ b/classes/ColdTrick/WidgetManager/Groups.php @@ -82,7 +82,7 @@ public static function updateGroupWidgets(\Elgg\Event $event) { // ignore access restrictions // because if a group is created with a visibility of only group members // the group owner is not yet added to the acl and thus can't edit the newly created widgets - elgg_call(ELGG_IGNORE_ACCESS, function() use ($current_widgets, $enable_widget_handlers, $column_counts) { + elgg_call(ELGG_IGNORE_ACCESS, function() use ($object, $current_widgets, $enable_widget_handlers, $column_counts) { if (!empty($current_widgets) && is_array($current_widgets)) { foreach ($current_widgets as $column => $widgets) { // count for later balancing