Progress implementing zip file export
This commit is contained in:
@@ -779,7 +779,7 @@ function widget_design_tools($arr) {
|
||||
return design_tools();
|
||||
}
|
||||
|
||||
function widget_website_import_tools($arr) {
|
||||
function widget_website_portation_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.
|
||||
@@ -791,22 +791,7 @@ function widget_website_import_tools($arr) {
|
||||
if(! local_channel())
|
||||
return '';
|
||||
|
||||
return website_import_tools();
|
||||
}
|
||||
|
||||
function widget_website_export_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_export_tools();
|
||||
return website_portation_tools();
|
||||
}
|
||||
|
||||
function widget_findpeople($arr) {
|
||||
|
Reference in New Issue
Block a user