Added menu items and permissions for style system
authorAlexander Ebert <ebert@woltlab.com>
Thu, 27 Sep 2012 22:56:43 +0000 (00:56 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 27 Sep 2012 22:56:43 +0000 (00:56 +0200)
com.woltlab.wcf/acpMenu.xml
com.woltlab.wcf/userGroupOption.xml

index a571b014ec089c9f6535f756360a7542ef13c018..38b8142720cff6da9e1171ca68ef6c4f39373bb3 100644 (file)
                        <showorder>3</showorder>
                </acpmenuitem>
                
+               <!-- style -->
+               <acpmenuitem name="wcf.acp.menu.link.style">
+                       <parent>wcf.acp.menu.link.display</parent>
+                       <showorder>1</showorder>
+               </acpmenuitem>
+               
+               <acpmenuitem name="wcf.acp.menu.link.style.list">
+                       <link>index.php/StyleList/</link>
+                       <parent>wcf.acp.menu.link.style</parent>
+                       <permissions>admin.style.canEditStyle,admin.style.canDeleteStyle</permissions>
+                       <showorder>1</showorder>
+               </acpmenuitem>
+               
+               <acpmenuitem name="wcf.acp.menu.link.style.add">
+                       <link>index.php/StyleAdd/</link>
+                       <parent>wcf.acp.menu.link.style</parent>
+                       <permissions>admin.style.canAddStyle</permissions>
+                       <showorder>2</showorder>
+               </acpmenuitem>
+               <!-- /style -->
+               
                <acpmenuitem name="wcf.acp.menu.link.content">
                        <showorder>4</showorder>
                </acpmenuitem>
index b42af4557949f10b1759b64633261779c1a668d2..22396fef8da1c0505a6e39ca4a3516342130eca1 100644 (file)
                                <defaultvalue>0</defaultvalue>
                                <admindefaultvalue>1</admindefaultvalue>
                        </option>
+                       
+                       <!-- admin.style -->
+                       <option name="admin.style.canAddStyle">
+                               <categoryname>admin.style</categoryname>
+                               <optiontype>boolean</optiontype>
+                               <defaultvalue>0</defaultvalue>
+                               <admindefaultvalue>1</admindefaultvalue>
+                       </option>
+                       <option name="admin.style.canEditStyle">
+                               <categoryname>admin.style</categoryname>
+                               <optiontype>boolean</optiontype>
+                               <defaultvalue>0</defaultvalue>
+                               <admindefaultvalue>1</admindefaultvalue>
+                       </option>
+                       <option name="admin.style.canDeleteStyle">
+                               <categoryname>admin.style</categoryname>
+                               <optiontype>boolean</optiontype>
+                               <defaultvalue>0</defaultvalue>
+                               <admindefaultvalue>1</admindefaultvalue>
+                       </option>
                        <option name="admin.style.canUseDisabledStyle">
                                <categoryname>admin.style</categoryname>
                                <optiontype>boolean</optiontype>
                                <defaultvalue>0</defaultvalue>
                                <admindefaultvalue>1</admindefaultvalue>
                        </option>
+                       <!-- /admin.style -->
+                       
                        <option name="admin.language.canAddLanguage">
                                <categoryname>admin.language</categoryname>
                                <optiontype>boolean</optiontype>