sort out anon profile display and write permissions

This commit is contained in:
Mike Macgirvin 2010-07-07 22:44:22 -07:00
parent ac48009180
commit 4b4d680dc4
5 changed files with 26 additions and 232 deletions

View file

@ -149,12 +149,15 @@ function profile_content(&$a) {
if(count($r)) {
foreach($r as $rr) {
$comment = replace_macros($template,array(
'$id' => $rr['item_id'],
'$profile_uid' => $a->profile['profile_uid']
));
if(can_write_wall($a,$a->profile['profile_uid'])) {
$comment = replace_macros($template,array(
'$id' => $rr['item_id'],
'$profile_uid' => $a->profile['profile_uid']
));
}
else {
$comment = '';
}
$o .= item_display($a,$rr,$tpl,$comment);
}