aboutsummaryrefslogtreecommitdiff
path: root/views/default/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/layouts')
-rw-r--r--views/default/layouts/widgets.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/layouts/widgets.php b/views/default/layouts/widgets.php
index 692d01acc..149e3d327 100644
--- a/views/default/layouts/widgets.php
+++ b/views/default/layouts/widgets.php
@@ -17,7 +17,7 @@ elgg_push_context('widgets');
$widgets = elgg_get_widgets($owner->guid, $context);
-if (elgg_can_edit_widgets()) {
+if (elgg_can_edit_widget_layout($context)) {
if ($show_add_widgets) {
echo elgg_view('widgets/add_button');
}