From: Fabio Comuni Date: Mon, 12 Mar 2012 14:08:41 +0000 (+0100) Subject: widgets: only local user can change settings X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=02483e4c949609a848626fc4e5b17e723fb429b9;p=friendica-addons.git widgets: only local user can change settings --- diff --git a/widgets/widgets.php b/widgets/widgets.php index 27cabfd6..47a6e48a 100755 --- a/widgets/widgets.php +++ b/widgets/widgets.php @@ -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');