diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-08-17 18:19:36 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-08-17 18:19:36 -0400 |
commit | c98b91f5149d53f522a19ec0f69b4d4727d34896 (patch) | |
tree | d543272c668d6327d9c917c004f1d0b52a489f60 /include/widgets.php | |
parent | 70d38fe5b3cec680fe689addfac34a47c26273ba (diff) | |
download | volse-hubzilla-c98b91f5149d53f522a19ec0f69b4d4727d34896.tar.gz volse-hubzilla-c98b91f5149d53f522a19ec0f69b4d4727d34896.tar.bz2 volse-hubzilla-c98b91f5149d53f522a19ec0f69b4d4727d34896.zip |
Stash changes for merge with dev
Diffstat (limited to 'include/widgets.php')
-rw-r--r-- | include/widgets.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/widgets.php b/include/widgets.php index 68db74703..fc2a9830b 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -794,6 +794,21 @@ function widget_website_import_tools($arr) { return website_import_tools(); } +function widget_website_export_tools($arr) { + + // mod menu doesn't load a profile. For any modules which load a profile, check it. + // otherwise local_channel() is sufficient for permissions. + + if(App::$profile['profile_uid']) + if((App::$profile['profile_uid'] != local_channel()) && (! App::$is_sys)) + return ''; + + if(! local_channel()) + return ''; + + return website_export_tools(); +} + function widget_findpeople($arr) { return findpeople_widget(); } |