widgets: only local user can change settings
This commit is contained in:
parent
84f26d06c4
commit
02483e4c94
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in a new issue