Add permission to edit notification preset
authorJoshua Rüsweg <josh@bastelstu.be>
Fri, 31 Aug 2018 09:37:15 +0000 (11:37 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Fri, 31 Aug 2018 09:37:15 +0000 (11:37 +0200)
See #2598

com.woltlab.wcf/acpMenu.xml
com.woltlab.wcf/userGroupOption.xml
wcfsetup/install/files/lib/acp/form/NotificationPresetSettingsForm.class.php
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index 18a6eadd99caa3bbe5dcd3cd5becb797aa542f64..09d83b3dec72748d3109fd52735599a788c4bfb7 100644 (file)
@@ -74,7 +74,7 @@
                        <acpmenuitem name="wcf.acp.menu.link.notificationPresetSettings">
                                <parent>wcf.acp.menu.link.other</parent>
                                <controller>wcf\acp\form\NotificationPresetSettingsForm</controller>
-                               <permissions>admin.user.canEditUser</permissions>
+                               <permissions>admin.user.canManageNotificationSettings</permissions>
                        </acpmenuitem>
                
                        <acpmenuitem name="wcf.acp.menu.link.contact.settings">
index 010e457f0e8356d8baf111e1f76e39bc6655c5db..2e944721dd482e33e08857ad409d5f4bb7981c82 100644 (file)
                                <admindefaultvalue>1</admindefaultvalue>
                                <usersonly>1</usersonly>
                        </option>
+                       <option name="admin.user.canManageNotificationSettings">
+                               <categoryname>admin.user.user</categoryname>
+                               <optiontype>boolean</optiontype>
+                               <defaultvalue>0</defaultvalue>
+                               <admindefaultvalue>1</admindefaultvalue>
+                               <usersonly>1</usersonly>
+                       </option>
                        
                        <option name="admin.user.canAddGroup">
                                <categoryname>admin.user.group</categoryname>
index 9d0a64df374a0b1e01f6f7bc332b2a13e280e375..c8b72f596824269a9c61083f9fae6d3f8be26284 100644 (file)
@@ -27,7 +27,7 @@ class NotificationPresetSettingsForm extends AbstractForm {
        /**
         * @inheritDoc
         */
-       public $neededPermissions = ['admin.user.canEditUser'];
+       public $neededPermissions = ['admin.user.canManageNotificationSettings'];
        
        /**
         * list of notification events
index 95458d5276455f6f6042ab5a0bbf018fa2c9b525..28219fa4a5dec3d77a06195636d0077f7ce0574d 100644 (file)
                <item name="wcf.acp.group.option.admin.user.canEditPassword"><![CDATA[Kann Kennwörter bearbeiten]]></item>
                <item name="wcf.acp.group.option.admin.user.canEditUser"><![CDATA[Kann Benutzer bearbeiten]]></item>
                <item name="wcf.acp.group.option.admin.user.canMailUser"><![CDATA[Kann E-Mails an Benutzer senden]]></item>
+               <item name="wcf.acp.group.option.admin.user.canManageNotificationSettings"><![CDATA[Kann Vorgabewerte für Benachrichtigungen bearbeiten]]></item>
                <item name="wcf.acp.group.option.admin.user.canSearchUser"><![CDATA[Kann Benutzer suchen]]></item>
                <item name="wcf.acp.group.option.category.admin"><![CDATA[Administrative Rechte]]></item>
                <item name="wcf.acp.group.option.category.admin.customization"><![CDATA[Anpassung]]></item>
index 3481c4c6ab070bcf7291579e9657379a2713f2c3..2803504d520248dd34aae2cc145f811a2c4fb442 100644 (file)
                <item name="wcf.acp.group.option.admin.user.canEditPassword"><![CDATA[Can edit user passwords]]></item>
                <item name="wcf.acp.group.option.admin.user.canEditUser"><![CDATA[Can edit users]]></item>
                <item name="wcf.acp.group.option.admin.user.canMailUser"><![CDATA[Can send emails to users]]></item>
+               <item name="wcf.acp.group.option.admin.user.canManageNotificationSettings"><![CDATA[Can edit default notification settings]]></item>
                <item name="wcf.acp.group.option.admin.user.canSearchUser"><![CDATA[Can search users]]></item>
                <item name="wcf.acp.group.option.category.admin"><![CDATA[Administrator Permissions]]></item>
                <item name="wcf.acp.group.option.category.admin.configuration"><![CDATA[Configuration]]></item>