From 188dc1fcf8be7476ca912e3e0cd7aa6cef0c9e8c Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Tue, 21 Sep 2010 19:51:08 -0700 Subject: relationship direction was too confusing to work with. instead of "in,out,both" it's now declared by role e.g. "vip,fan,bud". --- include/security.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/security.php') diff --git a/include/security.php b/include/security.php index 29334549b..630690f9e 100644 --- a/include/security.php +++ b/include/security.php @@ -10,8 +10,8 @@ function can_write_wall(&$a,$owner) { AND `readonly` = 0 AND `rel` IN ( %d , %d ) LIMIT 1", intval($owner), intval($_SESSION['visitor_id']), - intval(DIRECTION_OUT), - intval(DIRECTION_BOTH) + intval(REL_VIP), + intval(REL_BUD) ); if(count($r)) return true; -- cgit v1.2.3