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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

276 views 3 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you