mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 02:55:13 +00:00
by default pending connections have no rights
This commit is contained in:
parent
1b70ac1bc0
commit
c21f8c68e3
1 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ function get_all_perms($uid,$observer_xchan,$internal_use = true) {
|
||||||
|
|
||||||
// If they're blocked - they can't read or write
|
// If they're blocked - they can't read or write
|
||||||
|
|
||||||
if(($x) && ($x[0]['abook_flags'] & ABOOK_FLAG_BLOCKED)) {
|
if(($x) && (($x[0]['abook_flags'] & ABOOK_FLAG_BLOCKED) || ($x[0]['abook_flags'] & ABOOK_FLAG_PENDING))) {
|
||||||
$ret[$perm_name] = false;
|
$ret[$perm_name] = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -242,7 +242,7 @@ function perm_is_allowed($uid,$observer_xchan,$permission) {
|
||||||
|
|
||||||
// If they're blocked - they can't read or write
|
// If they're blocked - they can't read or write
|
||||||
|
|
||||||
if(($x) && ($x[0]['abook_flags'] & ABOOK_FLAG_BLOCKED))
|
if(($x) && (($x[0]['abook_flags'] & ABOOK_FLAG_BLOCKED) || ($x[0]['abook_flags'] & ABOOK_FLAG_PENDING)))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if(($x) && (! $global_perms[$permission][2]) && ($x[0]['abook_flags'] & ABOOK_FLAG_IGNORED))
|
if(($x) && (! $global_perms[$permission][2]) && ($x[0]['abook_flags'] & ABOOK_FLAG_IGNORED))
|
||||||
|
|
Loading…
Reference in a new issue