3 function can_write_wall(&$a,$owner) {
4 if((! (local_user())) && (! (remote_user())))
7 if(($uid) && ($uid === $owner))
10 $r = q("SELECT `contact`.*, `user`.`page-flags` FROM `contact` LEFT JOIN `user` on `user`.`uid` = `contact`.`uid`
11 WHERE `contact`.`uid` = %d AND `contact`.`id` = %d AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0
12 AND `readonly` = 0 AND ( `contact`.`rel` IN ( %d , %d ) OR `user`.`page-flags` = %d ) LIMIT 1",
14 intval($_SESSION['visitor_id']),
17 intval(PAGE_COMMUNITY)