From 4dcea7b5aa7b6a597a5d2d086f99dee6f57f9004 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 20 Nov 2010 14:15:58 +0000 Subject: added a plugin hook for determining who can edit a widget layout git-svn-id: http://code.elgg.org/elgg/trunk@7382 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/layouts/widgets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/default/layouts') 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'); } -- cgit v1.2.3