more comanche migration

This commit is contained in:
friendica
2013-12-19 02:16:14 -08:00
parent 2089a1379a
commit 125543aded
14 changed files with 58 additions and 127 deletions

View File

@@ -494,4 +494,20 @@ function widget_mailmenu($arr) {
));
}
function widget_design_tools($arr) {
$a = get_app();
// mod menu doesn't load a profile. For any modules which load a profile, check it.
// otherwise local_user() is sufficient for permissions.
if($a->profile['profile_uid'])
if($a->profile['profile_uid'] != local_user())
return '';
if(! local_user())
return '';
return design_tools();
}