aboutsummaryrefslogtreecommitdiffstats
path: root/include/photos.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-19 20:49:54 -0700
committerredmatrix <git@macgirvin.com>2016-07-19 20:49:54 -0700
commita961d5e6c8cd79b375e13a0b3d887e521392f8aa (patch)
tree192647b603c2b2db250df6b008c302e4fe755f23 /include/photos.php
parent237cca7a0d0a025bdbccef19b8e25a687ec7cfa3 (diff)
downloadvolse-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.php2
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;