diff options
author | redmatrix <git@macgirvin.com> | 2016-07-19 20:49:54 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-07-19 20:49:54 -0700 |
commit | a961d5e6c8cd79b375e13a0b3d887e521392f8aa (patch) | |
tree | 192647b603c2b2db250df6b008c302e4fe755f23 /include/photos.php | |
parent | 237cca7a0d0a025bdbccef19b8e25a687ec7cfa3 (diff) | |
download | volse-hubzilla-a961d5e6c8cd79b375e13a0b3d887e521392f8aa.tar.gz volse-hubzilla-a961d5e6c8cd79b375e13a0b3d887e521392f8aa.tar.bz2 volse-hubzilla-a961d5e6c8cd79b375e13a0b3d887e521392f8aa.zip |
permission fixes
Diffstat (limited to 'include/photos.php')
-rw-r--r-- | include/photos.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/photos.php b/include/photos.php index c70478146..d14c12d84 100644 --- a/include/photos.php +++ b/include/photos.php @@ -412,7 +412,7 @@ function photo_upload($channel, $observer, $args) { // in the photos pages - using the photos permissions instead. We need the public policy to keep the photo // linked item from leaking into the feed when somebody has a channel with read_stream restrictions. - $arr['public_policy'] = map_scope($channel['channel_r_stream'],true); + $arr['public_policy'] = map_scope(\Zotlabs\Access\PermissionLimits::Get($channel['channel_id'],'view_stream'),true); if($arr['public_policy']) $arr['item_private'] = 1; |