aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-19 22:32:22 -0700
committerredmatrix <git@macgirvin.com>2016-07-19 22:32:22 -0700
commitae6256f95a45dce44672bdc2e832c5c5757e0f20 (patch)
treeb9085853057971fccab650a8709e3bc47b080337 /include/channel.php
parenta961d5e6c8cd79b375e13a0b3d887e521392f8aa (diff)
downloadvolse-hubzilla-ae6256f95a45dce44672bdc2e832c5c5757e0f20.tar.gz
volse-hubzilla-ae6256f95a45dce44672bdc2e832c5c5757e0f20.tar.bz2
volse-hubzilla-ae6256f95a45dce44672bdc2e832c5c5757e0f20.zip
another couple of minor perms fixes
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/channel.php b/include/channel.php
index 1101e39e9..708e70b1c 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -1566,9 +1566,11 @@ function is_public_profile() {
if(intval(get_config('system','block_public')))
return false;
$channel = App::get_channel();
- if($channel && $channel['channel_r_profile'] == PERMS_PUBLIC)
- return true;
-
+ if($channel) {
+ $perm = \Zotlabs\Access\PermissionLimit::Get($channel['channel_id'],'view_profile');
+ if($perm == PERMS_PUBLIC)
+ return true;
+ }
return false;
}