aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/widgets.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-13 13:21:07 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-13 13:21:07 +0000
commit2493e2824833fbd36a5dd303206ac46549fe22a7 (patch)
tree381d08307bb5d1a82463ccad7fc4abe67492ea1e /engine/lib/widgets.php
parent8a5dcb8cdb54bd734bc9e54b9287cf895504700f (diff)
downloadelgg-2493e2824833fbd36a5dd303206ac46549fe22a7.tar.gz
elgg-2493e2824833fbd36a5dd303206ac46549fe22a7.tar.bz2
Widget fix
git-svn-id: https://code.elgg.org/elgg/trunk@910 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/widgets.php')
-rw-r--r--engine/lib/widgets.php4
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;
}