aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-05-18 01:25:54 -0700
committerfriendica <info@friendica.com>2013-05-18 01:25:54 -0700
commitf2de266ce6cfbc52288e3add070f8502fb5334d3 (patch)
treece2de7663329f77f73f711088ed6343e5b5b95c4 /include
parent9b66f16a01d3a3ac0a655c224a7b641853c0079e (diff)
downloadvolse-hubzilla-f2de266ce6cfbc52288e3add070f8502fb5334d3.tar.gz
volse-hubzilla-f2de266ce6cfbc52288e3add070f8502fb5334d3.tar.bz2
volse-hubzilla-f2de266ce6cfbc52288e3add070f8502fb5334d3.zip
doc update plus fix the "only to those in my address book" permission
Diffstat (limited to 'include')
-rw-r--r--include/permissions.php5
1 files changed, 5 insertions, 0 deletions
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,