Commits

Stefan Saasen committed 787721b

Define permission conditions for the web items

Comments (0)

Files changed (1)

src/main/resources/atlassian-plugin.xml

         <description key="hipchat-configuration.name">HipChat Configuration</description>
         <label key="hipchat-configuration.name"/>
         <link linkId="hipchat-configuration">/admin/hipchat.action</link>
+        <condition class="com.atlassian.confluence.plugin.descriptor.web.conditions.ConfluenceAdministratorCondition"/>
     </web-item>
 
     <!-- Space config -->
                 "hipchat-icon.png")
             </link>
         </icon>
+        <condition class="com.atlassian.confluence.plugin.descriptor.web.conditions.HasSpaceCondition"/>
+        <condition class="com.atlassian.confluence.plugin.descriptor.web.conditions.SpacePermissionCondition">
+            <param name="permission">administer</param>
+        </condition>
         <condition class="com.atlassian.confluence.plugin.descriptor.web.conditions.NotPersonalSpaceCondition"/>
     </web-item>