correct the permissions on profile page

This commit is contained in:
friendica 2014-07-17 22:07:23 -07:00
parent 9e988afa1f
commit 2721d58a1c

View file

@ -952,7 +952,7 @@ function advanced_profile(&$a) {
if($a->profile['gender']) $profile['gender'] = array( t('Gender:'), $a->profile['gender'] ); if($a->profile['gender']) $profile['gender'] = array( t('Gender:'), $a->profile['gender'] );
$ob_hash = get_observer_hash(); $ob_hash = get_observer_hash();
if($ob_hash && perm_is_allowed($a->profile['profile_uid'],$ob_hash,'post_wall')) { if($ob_hash && perm_is_allowed($a->profile['profile_uid'],$ob_hash,'post_like')) {
$profile['canlike'] = true; $profile['canlike'] = true;
$profile['likethis'] = t('Like this channel'); $profile['likethis'] = t('Like this channel');
$profile['profile_guid'] = $a->profile['profile_guid']; $profile['profile_guid'] = $a->profile['profile_guid'];