aboutsummaryrefslogtreecommitdiffstats
path: root/include/widgets.php
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2016-08-01 14:07:18 +0200
committerzottel <github@zottel.net>2016-08-01 14:07:18 +0200
commit55eda16b61041cf5d3aa941f3b2b4329246b1028 (patch)
tree175b6395415767523f1046ee42d654efaf1dac8a /include/widgets.php
parentb5ea20ac863ebdbc4cc0bad6b7ca9876df336e8f (diff)
parent3d0c90cbc5b756c6d54c4d41a136c0a38e67b013 (diff)
downloadvolse-hubzilla-55eda16b61041cf5d3aa941f3b2b4329246b1028.tar.gz
volse-hubzilla-55eda16b61041cf5d3aa941f3b2b4329246b1028.tar.bz2
volse-hubzilla-55eda16b61041cf5d3aa941f3b2b4329246b1028.zip
Merge remote-tracking branch 'upstream/dev' into dev
Diffstat (limited to 'include/widgets.php')
-rw-r--r--include/widgets.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/widgets.php b/include/widgets.php
index 3516e82da..5477dc1e4 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -779,6 +779,20 @@ function widget_design_tools($arr) {
return design_tools();
}
+function widget_website_import_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_import_tools();
+}
function widget_findpeople($arr) {
return findpeople_widget();