diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-04-19 08:28:42 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-04-19 08:28:42 +0200 |
commit | 92b08f1f07a25976342dc885331ecb1531e256aa (patch) | |
tree | 4127afeee7d8a3b710863d9ad022fed2b82a8ebc /Zotlabs/Widget/Design_tools.php | |
parent | 16dcbc1e674cef1d51dc0e81f91d7055350f9990 (diff) | |
parent | a81011333fc113006fbf49b561915532f6cd2509 (diff) | |
download | volse-hubzilla-92b08f1f07a25976342dc885331ecb1531e256aa.tar.gz volse-hubzilla-92b08f1f07a25976342dc885331ecb1531e256aa.tar.bz2 volse-hubzilla-92b08f1f07a25976342dc885331ecb1531e256aa.zip |
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'Zotlabs/Widget/Design_tools.php')
-rw-r--r-- | Zotlabs/Widget/Design_tools.php | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Zotlabs/Widget/Design_tools.php b/Zotlabs/Widget/Design_tools.php index 8ab6a235d..a15c0c98d 100644 --- a/Zotlabs/Widget/Design_tools.php +++ b/Zotlabs/Widget/Design_tools.php @@ -6,16 +6,9 @@ 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(perm_is_allowed(\App::$profile['profile_uid'],get_observer_hash(),'write_pages') || (\App::$is_sys && is_site_admin())) + return design_tools(); - if(\App::$profile['profile_uid']) - if((\App::$profile['profile_uid'] != local_channel()) && (! \App::$is_sys)) - return ''; - - if(! local_channel()) - return ''; - - return design_tools(); + return EMPTY_STR; } }
\ No newline at end of file |