widgets: only local user can change settings
This commit is contained in:
parent
84f26d06c4
commit
02483e4c94
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,8 @@ function widgets_uninstall() {
|
||||||
|
|
||||||
|
|
||||||
function widgets_settings_post(){
|
function widgets_settings_post(){
|
||||||
|
if(! local_user())
|
||||||
|
return;
|
||||||
if (isset($_POST['widgets-submit'])){
|
if (isset($_POST['widgets-submit'])){
|
||||||
del_pconfig(local_user(), 'widgets', 'key');
|
del_pconfig(local_user(), 'widgets', 'key');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue