From 4b4d680dc4e40384e9cc71591609a1f788f31c66 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Wed, 7 Jul 2010 22:44:22 -0700 Subject: sort out anon profile display and write permissions --- mod/profile.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'mod/profile.php') diff --git a/mod/profile.php b/mod/profile.php index 957d67be3..1caa3478f 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -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); } -- cgit v1.2.3