mirror of
https://github.com/friendica/friendica
synced 2025-04-26 07:10:12 +00:00
[privacy] rework latest fix
This commit is contained in:
parent
39a49d51e3
commit
88cd5800cf
2 changed files with 3 additions and 4 deletions
|
@ -159,6 +159,7 @@ function permissions_sql($owner_id,$remote_verified = false,$groups = null) {
|
|||
AND allow_gid = ''
|
||||
AND deny_cid = ''
|
||||
AND deny_gid = ''
|
||||
AND private = 0
|
||||
";
|
||||
|
||||
/**
|
||||
|
@ -199,10 +200,11 @@ function permissions_sql($owner_id,$remote_verified = false,$groups = null) {
|
|||
}
|
||||
|
||||
$sql = sprintf(
|
||||
" AND ( allow_cid = '' OR allow_cid REGEXP '<%d>' )
|
||||
" AND (( allow_cid = '' OR allow_cid REGEXP '<%d>' )
|
||||
AND ( deny_cid = '' OR NOT deny_cid REGEXP '<%d>' )
|
||||
AND ( allow_gid = '' OR allow_gid REGEXP '%s' )
|
||||
AND ( deny_gid = '' OR NOT deny_gid REGEXP '%s')
|
||||
OR private = 0 )
|
||||
",
|
||||
intval($remote_user),
|
||||
intval($remote_user),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue