another couple of minor perms fixes

This commit is contained in:
redmatrix
2016-07-19 22:32:22 -07:00
parent a961d5e6c8
commit ae6256f95a
2 changed files with 10 additions and 8 deletions

View File

@@ -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;
}