diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-13 13:21:07 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-13 13:21:07 +0000 |
commit | 2493e2824833fbd36a5dd303206ac46549fe22a7 (patch) | |
tree | 381d08307bb5d1a82463ccad7fc4abe67492ea1e | |
parent | 8a5dcb8cdb54bd734bc9e54b9287cf895504700f (diff) | |
download | elgg-2493e2824833fbd36a5dd303206ac46549fe22a7.tar.gz elgg-2493e2824833fbd36a5dd303206ac46549fe22a7.tar.bz2 |
Widget fix
git-svn-id: https://code.elgg.org/elgg/trunk@910 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | engine/lib/widgets.php | 4 |
1 files changed, 3 insertions, 1 deletions
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;
}
|