How to disappear Menu Item Plugin in bar while user is not auth?

Vitaliy Sivolotskiy August 30, 2017

Hi.

I need to disappear Menu Item in bar while user is not auth. Is it possible?

My jira-config.properties file:

<atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}" plugins-version="2">
<plugin-info>
<description>${project.description}</description>
<version>${project.version}</version>
<vendor name="${project.organization.name}" url="${project.organization.url}"/>
<param name="plugin-icon">images/pluginIcon.png</param>
<param name="plugin-logo">images/pluginLogo.png</param>
</plugin-info>
<!-- add our i18n resource -->
<resource type="i18n" name="i18n" location="timesheets-jira-plugin"/>
<!-- add our web resources -->
<web-resource key="timesheets-jira-plugin-resources" name="timesheets-jira-plugin Web Resources">
<dependency>com.atlassian.auiplugin:ajs</dependency>
<resource type="download" name="timesheets-jira-plugin.css" location="/css/timesheets-jira-plugin.css"/>
<resource type="download" name="basiccalendar.js" location="/js/basiccalendar.js"/>
<resource type="download" name="date.format.js" location="/js/date.format.js"/>
<resource type="download" name="hint.js" location="/js/hint.js"/>
<resource type="download" name="jquery-1.5.1.js" location="/js/jquery-1.5.1.js"/>
<resource type="download" name="timesheets.js" location="/js/timesheets.js"/>
<resource type="download" name="images/" location="/images"/>
<context>timesheets-jira-plugin</context>
</web-resource>
<servlet name="Timesheets Servlet" i18n-name-key="timesheets-servlet.name" key="timesheets-servlet" class="com.redwerk.servlet.TimesheetsServlet">
<description key="timesheets-servlet.description">The Timesheets Servlet Plugin</description>
<url-pattern>/redwerk-timesheets</url-pattern>
</servlet>
<web-item name="Timesheets Web Item" i18n-name-key="timesheets-web-item.name" key="timesheets-web-item" section="system.top.navigation.bar" weight="1000">
<description key="timesheets-web-item.description">The Timesheets Web Item Plugin</description>
<label key="timesheets-web-item.label">Timesheets</label>
<link linkId="timesheets-web-item-link">/plugins/servlet/redwerk-timesheets</link>
</web-item>
</atlassian-plugin>

0 answers

Suggest an answer

Log in or Sign up to answer