aboutsummaryrefslogtreecommitdiffstats
path: root/include/security.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-21 19:51:08 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-21 19:51:08 -0700
commit188dc1fcf8be7476ca912e3e0cd7aa6cef0c9e8c (patch)
tree621153500aba341b1cee98e800fbea70d5132579 /include/security.php
parent399b6828f6888ff65d3ace22876c49f0887e88e6 (diff)
downloadvolse-hubzilla-188dc1fcf8be7476ca912e3e0cd7aa6cef0c9e8c.tar.gz
volse-hubzilla-188dc1fcf8be7476ca912e3e0cd7aa6cef0c9e8c.tar.bz2
volse-hubzilla-188dc1fcf8be7476ca912e3e0cd7aa6cef0c9e8c.zip
relationship direction was too confusing to work with. instead of "in,out,both" it's now declared by role e.g. "vip,fan,bud".
Diffstat (limited to 'include/security.php')
-rw-r--r--include/security.php4
1 files changed, 2 insertions, 2 deletions
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;