aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Design_tools.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-15 20:56:12 -0700
committerzotlabs <mike@macgirvin.com>2017-03-15 20:56:12 -0700
commit16d750d1f6cf0d2866388269e02445630c4e3464 (patch)
treead44965b8dae98d55322919493ac18d733bd5743 /Zotlabs/Widget/Design_tools.php
parentdfd626548fc903a4ecffe3241570957a2df9a37a (diff)
downloadvolse-hubzilla-16d750d1f6cf0d2866388269e02445630c4e3464.tar.gz
volse-hubzilla-16d750d1f6cf0d2866388269e02445630c4e3464.tar.bz2
volse-hubzilla-16d750d1f6cf0d2866388269e02445630c4e3464.zip
widgets cont.
Diffstat (limited to 'Zotlabs/Widget/Design_tools.php')
-rw-r--r--Zotlabs/Widget/Design_tools.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/Zotlabs/Widget/Design_tools.php b/Zotlabs/Widget/Design_tools.php
new file mode 100644
index 000000000..8ab6a235d
--- /dev/null
+++ b/Zotlabs/Widget/Design_tools.php
@@ -0,0 +1,21 @@
+<?php
+
+namespace Zotlabs\Widget;
+
+class Design_tools {
+
+ function widget($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 design_tools();
+ }
+} \ No newline at end of file