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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

235 views 1 18
Join discussion

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