From 652959678f47b84830123df4fac8add31657b4c9 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 10 Dec 2013 23:27:17 -0800 Subject: cleanup and Comanchification of mod_profile --- include/identity.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/identity.php') diff --git a/include/identity.php b/include/identity.php index e22bb8645..b25594c87 100644 --- a/include/identity.php +++ b/include/identity.php @@ -868,6 +868,9 @@ function profile_sidebar($profile, $block = 0, $show_connect = true) { function advanced_profile(&$a) { + if(! perm_is_allowed($a->profile['profile_uid'],get_observer_hash(),'view_profile')) + return ''; + $o = ''; $o .= '

' . t('Profile') . '

'; -- cgit v1.2.3