From 2493e2824833fbd36a5dd303206ac46549fe22a7 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 13 Jun 2008 13:21:07 +0000 Subject: Widget fix git-svn-id: https://code.elgg.org/elgg/trunk@910 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/widgets.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/lib/widgets.php b/engine/lib/widgets.php index b4ad9bd93..e92c52f36 100644 --- a/engine/lib/widgets.php +++ b/engine/lib/widgets.php @@ -259,11 +259,13 @@ $handler = $widget->handler; if (empty($handler) || !widget_type_exists($handler)) return false; + if (!$widget->canEdit()) return false; + // Save the params to the widget if (is_array($params) && sizeof($params) > 0) { foreach($params as $name => $value) { if (!empty($name) && !in_array($name,array( - 'guid','owner_guid','access_id','site_guid' + 'guid','owner_guid','site_guid' ))) { $widget->$name = $value; } -- cgit v1.2.3