aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 14:15:58 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 14:15:58 +0000
commit4dcea7b5aa7b6a597a5d2d086f99dee6f57f9004 (patch)
tree5b9cec51f4b9ff7d3dbaf1e808701ad1db42148f /views/default
parent58f0a2c30f4111f6b85a1ef05e0f9a04c4d86141 (diff)
downloadelgg-4dcea7b5aa7b6a597a5d2d086f99dee6f57f9004.tar.gz
elgg-4dcea7b5aa7b6a597a5d2d086f99dee6f57f9004.tar.bz2
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
Diffstat (limited to 'views/default')
-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');
}