diff options
author | Mario <mario@mariovavti.com> | 2023-06-29 12:31:32 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-06-29 12:31:32 +0000 |
commit | 7755936a2ef31d8ad9976d6fe80eb85f0b816f70 (patch) | |
tree | afb8e4ad68c573361777254f20728a6df6cd3f57 /include/permissions.php | |
parent | 9f6844ec30612fe2b1f0af4e52018a432698b226 (diff) | |
download | volse-hubzilla-7755936a2ef31d8ad9976d6fe80eb85f0b816f70.tar.gz volse-hubzilla-7755936a2ef31d8ad9976d6fe80eb85f0b816f70.tar.bz2 volse-hubzilla-7755936a2ef31d8ad9976d6fe80eb85f0b816f70.zip |
remove unused pseudo abook code
Diffstat (limited to 'include/permissions.php')
-rw-r--r-- | include/permissions.php | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/include/permissions.php b/include/permissions.php index c3a9286c0..28f242712 100644 --- a/include/permissions.php +++ b/include/permissions.php @@ -175,7 +175,7 @@ function get_all_perms($uid, $observer_xchan, $check_siteblock = true, $default_ // They are in your address book, but haven't been approved - if($channel_perm & PERMS_PENDING && (! intval($x[0]['abook_pseudo']))) { + if($channel_perm & PERMS_PENDING) { $ret[$perm_name] = 1; continue; } @@ -188,12 +188,6 @@ function get_all_perms($uid, $observer_xchan, $check_siteblock = true, $default_ // They're a contact, so they have permission if($channel_perm & PERMS_CONTACTS) { - // it was a fake abook entry, not really a connection - if(array_key_exists('abook_pseudo',$x[0]) && intval($x[0]['abook_pseudo'])) { - $ret[$perm_name] = 0; - continue; - } - $ret[$perm_name] = 1; continue; } @@ -340,7 +334,7 @@ function perm_is_allowed($uid, $observer_xchan, $permission, $check_siteblock = return false; } - // From here on we require that the observer be a connection or pseudo connection + // From here on we require that the observer be a connection if(! $x) { return false; @@ -348,7 +342,7 @@ function perm_is_allowed($uid, $observer_xchan, $permission, $check_siteblock = // They are in your address book, but haven't been approved - if($channel_perm & PERMS_PENDING && (! intval($x[0]['abook_pseudo']))) { + if($channel_perm & PERMS_PENDING) { return true; } @@ -359,10 +353,6 @@ function perm_is_allowed($uid, $observer_xchan, $permission, $check_siteblock = // They're a contact, so they have permission if($channel_perm & PERMS_CONTACTS) { - // it was a fake abook entry, not really a connection - if(array_key_exists('abook_pseudo',$x[0]) && intval($x[0]['abook_pseudo'])) { - return false; - } return true; } |