aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-06-29 12:31:32 +0000
committerMario <mario@mariovavti.com>2023-06-29 12:31:32 +0000
commit7755936a2ef31d8ad9976d6fe80eb85f0b816f70 (patch)
treeafb8e4ad68c573361777254f20728a6df6cd3f57 /include
parent9f6844ec30612fe2b1f0af4e52018a432698b226 (diff)
downloadvolse-hubzilla-7755936a2ef31d8ad9976d6fe80eb85f0b816f70.tar.gz
volse-hubzilla-7755936a2ef31d8ad9976d6fe80eb85f0b816f70.tar.bz2
volse-hubzilla-7755936a2ef31d8ad9976d6fe80eb85f0b816f70.zip
remove unused pseudo abook code
Diffstat (limited to 'include')
-rw-r--r--include/permissions.php16
-rw-r--r--include/security.php15
2 files changed, 3 insertions, 28 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;
}
diff --git a/include/security.php b/include/security.php
index 5ea6f13ef..b3e45742e 100644
--- a/include/security.php
+++ b/include/security.php
@@ -237,21 +237,6 @@ function atoken_abook($uid, $xchan_hash) {
}
-function pseudo_abook($xchan) {
- if (!$xchan)
- return false;
-
- // set abook_pseudo to flag that we aren't really connected.
-
- $xchan['abook_pseudo'] = 1;
- $xchan['abook_blocked'] = 0;
- $xchan['abook_ignored'] = 0;
- $xchan['abook_pending'] = 0;
-
- return $xchan;
-}
-
-
/**
* @brief Change to another channel with current logged-in account.
*