aboutsummaryrefslogtreecommitdiff
path: root/actions/widgets
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-07-14 21:44:14 -0400
committerCash Costello <cash.costello@gmail.com>2012-07-14 21:44:14 -0400
commit2e0cc0343715adec8a0843750016f89acc3c2394 (patch)
tree9205cbf231ef9f2035a8d29b4834f44c7e86e7d0 /actions/widgets
parent1ed326672a833f020bdb15f0b9cb047ab57f0b5b (diff)
downloadelgg-2e0cc0343715adec8a0843750016f89acc3c2394.tar.gz
elgg-2e0cc0343715adec8a0843750016f89acc3c2394.tar.bz2
Fixes #4661 not showing access on widgets loaded through ajax if the layout does not show access
Diffstat (limited to 'actions/widgets')
-rw-r--r--actions/widgets/add.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/widgets/add.php b/actions/widgets/add.php
index f65d11134..d7b2f291c 100644
--- a/actions/widgets/add.php
+++ b/actions/widgets/add.php
@@ -9,6 +9,7 @@
$owner_guid = get_input('owner_guid');
$handler = get_input('handler');
$context = get_input('context');
+$show_access = (bool)get_input('show_access', true);
$column = get_input('column', 1);
$default_widgets = get_input('default_widgets', 0);
@@ -29,7 +30,7 @@ if (!empty($owner_guid)) {
$widget->move($column, 0);
// send widget html for insertion
- echo elgg_view_entity($widget);
+ echo elgg_view_entity($widget, array('show_access' => $show_access));
//system_message(elgg_echo('widgets:add:success'));
forward(REFERER);