widgets: only local user can change settings

pull/30/head
Fabio Comuni 2012-03-12 15:08:41 +01:00
parent 84f26d06c4
commit 02483e4c94
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,8 @@ function widgets_uninstall() {
function widgets_settings_post(){
if(! local_user())
return;
if (isset($_POST['widgets-submit'])){
del_pconfig(local_user(), 'widgets', 'key');