aboutsummaryrefslogtreecommitdiffstats
path: root/include/widgets.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-07-10 06:58:20 -0400
committerAndrew Manning <tamanning@zoho.com>2016-07-10 06:58:20 -0400
commita338a97d5bb947f462483de8a9d87dd52fa3b2eb (patch)
tree7919c7ac7345e331b2eb12f3797620c0cc229a8d /include/widgets.php
parent50e581d88ad4901b13bbf99b2e58a5787b6bccec (diff)
downloadvolse-hubzilla-a338a97d5bb947f462483de8a9d87dd52fa3b2eb.tar.gz
volse-hubzilla-a338a97d5bb947f462483de8a9d87dd52fa3b2eb.tar.bz2
volse-hubzilla-a338a97d5bb947f462483de8a9d87dd52fa3b2eb.zip
First draft of website import tools
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 a4a6fb55a..6bb53bdf9 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -770,6 +770,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();