Skip to content

Commit

Permalink
chore: make sure we have access to $object during elgg call
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Aug 8, 2019
1 parent 644c8ef commit 9366c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/ColdTrick/WidgetManager/Groups.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9366c08

Please sign in to comment.