3:wcf.user.access.nobody</selectoptions>
<defaultvalue>0</defaultvalue>
</option>
+ <option name="canViewTrophies">
+ <categoryname>settings.privacy.content</categoryname>
+ <optiontype>select</optiontype>
+ <editable>3</editable>
+ <selectoptions>0:wcf.user.access.everyone
+1:wcf.user.access.registered
+2:wcf.user.access.following
+3:wcf.user.access.nobody</selectoptions>
+ <options>module_trophy</options>
+ <permissions>user.profile.trophy.canSeeTrophies</permissions>
+ <defaultvalue>0</defaultvalue>
+ </option>
<!-- settings.privacy.messaging -->
<option name="canViewEmailAddress">
return false;
}
- // @TODO check user option canViewTrophies
- return true;
+ return $this->getUserProfile()->isAccessible('canViewTrophies') || $user->userID == $this->userID;
}
/**
<item name="wcf.user.option.canViewEmailAddress"><![CDATA[Kann E-Mail-Adresse sehen]]></item>
<item name="wcf.user.option.canViewOnlineStatus"><![CDATA[Kann Online-Status sehen]]></item>
<item name="wcf.user.option.canViewProfile"><![CDATA[Kann Benutzerprofil sehen]]></item>
+ <item name="wcf.user.option.canViewTrophies"><![CDATA[Kann Trophäen sehen]]></item>
<item name="wcf.user.option.category.profile"><![CDATA[Persönliche Daten]]></item>
<item name="wcf.user.option.category.profile.aboutMe"><![CDATA[Über mich]]></item>
<item name="wcf.user.option.canViewEmailAddress"><![CDATA[Can View My Email Address]]></item>
<item name="wcf.user.option.canViewOnlineStatus"><![CDATA[Can View My Online Status]]></item>
<item name="wcf.user.option.canViewProfile"><![CDATA[Can View My Profile]]></item>
+ <item name="wcf.user.option.canViewTrophies"><![CDATA[Can View Trophies]]></item>
<item name="wcf.user.option.category.profile"><![CDATA[Personal Data]]></item>
<item name="wcf.user.option.category.profile.aboutMe"><![CDATA[About Me]]></item>