widgets: only local user can change settings

This commit is contained in:
Fabio Comuni 2012-03-12 15:08:41 +01:00
parent 84f26d06c4
commit 02483e4c94

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');