<hasFixedParent>1</hasFixedParent>
<parent>com.woltlab.wcf.AccountManagement</parent>
<options>module_paid_subscription</options>
+ <permissions>user.profile.payment.canBuyPaidSubscription</permissions>
<content language="en">
<title>Paid Subscriptions</title>
</content>
<category name="user.profile.trophy">
<parent>user.profile</parent>
</category>
+ <category name="user.profile.payment">
+ <parent>user.profile</parent>
+ </category>
<category name="user.message">
<parent>user</parent>
</category>
<minvalue>0</minvalue>
<usersonly>1</usersonly>
</option>
+ <option name="user.profile.payment.canBuyPaidSubscription">
+ <categoryname>user.profile.payment</categoryname>
+ <optiontype>boolean</optiontype>
+ <defaultvalue>1</defaultvalue>
+ <options>module_paid_subscription</options>
+ <usersonly>1</usersonly>
+ </option>
<!-- /user.profile -->
<option name="user.page.canAddComment">
<categoryname>user.page</categoryname>
<controller>wcf\page\PaidSubscriptionListPage</controller>
<parent>wcf.user.menu.settings</parent>
<options>module_paid_subscription</options>
+ <permissions>user.profile.payment.canBuyPaidSubscription</permissions>
</usermenuitem>
<!-- /settings -->
<!-- community -->
*/
public $neededModules = ['MODULE_PAID_SUBSCRIPTION'];
+ /**
+ * @inheritDoc
+ */
+ public $neededPermissions = ['user.profile.payment.canBuyPaidSubscription'];
+
/**
* list of available paid subscriptions
* @var array
<item name="wcf.acp.group.option.user.profile.trophy.canSeeTrophies"><![CDATA[Kann Trophäen sehen]]></item>
<item name="wcf.acp.group.option.user.profile.trophy.maxUserSpecialTrophies"><![CDATA[Maximale Anzahl an besonderen Trophäen]]></item>
<item name="wcf.acp.group.option.user.profile.trophy.maxUserSpecialTrophies.description"><![CDATA[Besondere Trophäen können vom Benutzer individuell ausgewählt werden und werden in der Message-Sidebar und im Benutzerprofil angezeigt.]]></item>
+ <item name="wcf.acp.group.option.category.user.profile.payment"><![CDATA[Zahlungsoptionen]]></item>
+ <item name="wcf.acp.group.option.user.profile.payment.canBuyPaidSubscription"><![CDATA[Kann bezahlte Mitgliedschaften kaufen]]></item>
<item name="wcf.acp.group.option.category.user.profile.coverPhoto"><![CDATA[Titelbilder]]></item>
<item name="wcf.acp.group.option.user.profile.coverPhoto.canSeeCoverPhotos"><![CDATA[Kann Titelbilder sehen]]></item>
<item name="wcf.acp.group.option.user.profile.coverPhoto.canUploadCoverPhoto"><![CDATA[Kann eigenes Titelbild hochladen]]></item>
<item name="wcf.acp.group.option.user.profile.trophy.canSeeTrophies"><![CDATA[Can see trophies]]></item>
<item name="wcf.acp.group.option.user.profile.trophy.maxUserSpecialTrophies"><![CDATA[Maximum number of special trophies]]></item>
<item name="wcf.acp.group.option.user.profile.trophy.maxUserSpecialTrophies.description"><![CDATA[Special trophies can be individually selected by the user and displayed in the message sidebar and the user profile.]]></item>
+ <item name="wcf.acp.group.option.category.user.profile.payment"><![CDATA[Payment]]></item>
+ <item name="wcf.acp.group.option.user.profile.payment.canBuyPaidSubscription"><![CDATA[Can buy paid subscriptions]]></item>
<item name="wcf.acp.group.option.category.user.profile.coverPhoto"><![CDATA[Cover Photos]]></item>
<item name="wcf.acp.group.option.user.profile.coverPhoto.canSeeCoverPhotos"><![CDATA[Can view users’ cover photos]]></item>
<item name="wcf.acp.group.option.user.profile.coverPhoto.canUploadCoverPhoto"><![CDATA[Can upload their cover photo]]></item>