widgets: only local user can change settings
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 New Issue