diff options
author | friendica <info@friendica.com> | 2014-03-26 18:45:01 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-03-26 18:45:01 -0700 |
commit | ed14c1f224afadb5dd5417d4078f853ff97b30cb (patch) | |
tree | cd527019841d3b3bfd98e8cdefaf03154db64bb0 /include/security.php | |
parent | 150bc9866a24303c86b78614b58b8d01a245b424 (diff) | |
download | volse-hubzilla-ed14c1f224afadb5dd5417d4078f853ff97b30cb.tar.gz volse-hubzilla-ed14c1f224afadb5dd5417d4078f853ff97b30cb.tar.bz2 volse-hubzilla-ed14c1f224afadb5dd5417d4078f853ff97b30cb.zip |
more work on firehose
Diffstat (limited to 'include/security.php')
-rw-r--r-- | include/security.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/security.php b/include/security.php index d974efb8f..282c8ab73 100644 --- a/include/security.php +++ b/include/security.php @@ -346,9 +346,10 @@ function stream_perms_api_uids($perms_min = PERMS_SITE) { $ret = array(); if(local_user()) $ret[] = local_user(); - $r = q("select channel_id from channel where channel_r_stream > 0 and channel_r_stream <= %d and not (channel_pageflags & %d)", + $r = q("select channel_id from channel where channel_r_stream > 0 and channel_r_stream <= %d and not (channel_pageflags & %d) and not (channel_pageflags & %d)", intval($perms_min), - intval(PAGE_CENSORED) + intval(PAGE_CENSORED), + intval(PAGE_SYSTEM) ); if($r) foreach($r as $rr) @@ -371,9 +372,10 @@ function stream_perms_xchans($perms_min = PERMS_SITE) { if(local_user()) $ret[] = get_observer_hash(); - $r = q("select channel_hash from channel where channel_r_stream > 0 and channel_r_stream <= %d and not (channel_pageflags & %d)", + $r = q("select channel_hash from channel where channel_r_stream > 0 and channel_r_stream <= %d and not (channel_pageflags & %d) and not (channel_pageflags & %d)", intval($perms_min), - intval(PAGE_CENSORED) + intval(PAGE_CENSORED), + intval(PAGE_SYSTEM) ); if($r) foreach($r as $rr) |