diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/classes/ElggWidget.php | 4 | ||||
-rw-r--r-- | engine/lib/widgets.php | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/engine/classes/ElggWidget.php b/engine/classes/ElggWidget.php index 21ad8c5dd..0a0eb9b1c 100644 --- a/engine/classes/ElggWidget.php +++ b/engine/classes/ElggWidget.php @@ -142,4 +142,8 @@ class ElggWidget extends ElggObject { } $this->column = $column; } + + public function canEdit($user_guid = 0) { + return true; + } }
\ No newline at end of file diff --git a/engine/lib/widgets.php b/engine/lib/widgets.php index 9c6e68b53..92d022913 100644 --- a/engine/lib/widgets.php +++ b/engine/lib/widgets.php @@ -601,6 +601,7 @@ function widgets_init() { register_action('widgets/save'); register_action('widgets/add'); register_action('widgets/move'); + register_action('widgets/delete'); // Now run this stuff, but only once run_function_once("widget_run_once"); |