First draft of website import tools

This commit is contained in:
Andrew Manning
2016-07-10 06:58:20 -04:00
parent 50e581d88a
commit a338a97d5b
4 changed files with 46 additions and 0 deletions

View File

@@ -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();