aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/identity.php3
1 files changed, 3 insertions, 0 deletions
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 .= '<h2>' . t('Profile') . '</h2>';