From f2de266ce6cfbc52288e3add070f8502fb5334d3 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 18 May 2013 01:25:54 -0700 Subject: doc update plus fix the "only to those in my address book" permission --- include/permissions.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/permissions.php b/include/permissions.php index 97f1fe8e6..9641d224a 100644 --- a/include/permissions.php +++ b/include/permissions.php @@ -164,10 +164,13 @@ function get_all_perms($uid,$observer_xchan,$internal_use = true) { // If PERMS_CONTACTS or PERMS_SPECIFIC, they need to be in your address book // $x is a valid address book entry + + if(! $x) { $ret[$perm_name] = false; continue; } + if(($r) && ($r[0][$channel_perm] & PERMS_CONTACTS)) { @@ -192,6 +195,8 @@ function get_all_perms($uid,$observer_xchan,$internal_use = true) { continue; } + + $arr = array( 'channel_id' => $uid, 'observer_hash' => $observer_xchan, -- cgit v1.2.3