</h3>
</div>
<ul class="inlineList commaSeparated">
- {if $user->isAccessible('canViewProfile')}
+ {if $__wcf->getSession()->getPermission('user.profile.canViewUserProfile') && $user->isAccessible('canViewProfile')}
{if $user->isVisibleOption('gender') && $user->gender}<li>{lang}wcf.user.gender.{if $user->gender == 1}male{else}female{/if}{/lang}</li>{/if}
{if $user->isVisibleOption('birthday') && $user->getAge()}<li>{@$user->getAge()}</li>{/if}
{if $user->isVisibleOption('location') && $user->location}<li>{lang}wcf.user.membersList.location{/lang}</li>{/if}
{hascontent}
<dl class="plain inlineDataList userFields">
{content}
- {if $user->isAccessible('canViewProfile')}
+ {if $__wcf->getSession()->getPermission('user.profile.canViewUserProfile') && $user->isAccessible('canViewProfile')}
{if $user->occupation}
<dt>{lang}wcf.user.option.occupation{/lang}</dt>
<dd>{$user->occupation}</dd>