diff options
author | zotlabs <mike@macgirvin.com> | 2017-03-16 17:11:48 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-03-16 17:11:48 -0700 |
commit | 446b5550a2c2b52bb31db5b99602c42b9dfdade6 (patch) | |
tree | bc7cf06be9fe2561bddf29ee3d4a082241b75248 /Zotlabs/Widget/Website_portation_tools.php | |
parent | 051759580dc7aff7d5b349b3b5271f054c7d3423 (diff) | |
download | volse-hubzilla-446b5550a2c2b52bb31db5b99602c42b9dfdade6.tar.gz volse-hubzilla-446b5550a2c2b52bb31db5b99602c42b9dfdade6.tar.bz2 volse-hubzilla-446b5550a2c2b52bb31db5b99602c42b9dfdade6.zip |
the rest of the standard widgets converted
Diffstat (limited to 'Zotlabs/Widget/Website_portation_tools.php')
-rw-r--r-- | Zotlabs/Widget/Website_portation_tools.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Zotlabs/Widget/Website_portation_tools.php b/Zotlabs/Widget/Website_portation_tools.php new file mode 100644 index 000000000..1cf3bb78a --- /dev/null +++ b/Zotlabs/Widget/Website_portation_tools.php @@ -0,0 +1,22 @@ +<?php + +namespace Zotlabs\Widget; + + +class Website_portation_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 website_portation_tools(); + } +} |