]> git.mxchange.org Git - friendica-addons.git/commitdiff
widgets: only local user can change settings
authorFabio Comuni <fabrix.xm@gmail.com>
Mon, 12 Mar 2012 14:08:41 +0000 (15:08 +0100)
committerFabio Comuni <fabrix.xm@gmail.com>
Mon, 12 Mar 2012 14:08:41 +0000 (15:08 +0100)
widgets/widgets.php

index 27cabfd698cdec6580ee39d9c99b2ff0d8699fbd..47a6e48a6fe6deea6903fb25b3d8f4244206112a 100755 (executable)
@@ -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');