Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira custom page access

b
Contributor
April 16, 2012

Hi,

I' ve created class that extends JiraWebActionSupport. Action displays custom data connected with issue. How could I restrict access to logged users? Should it be configured from atlassian-plugin file? Any code examples

1 answer

1 accepted

1 vote
Answer accepted
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 16, 2012

You must have a web-item to execute that action? If so, it can be hidden using conditions:

https://developer.atlassian.com/display/JIRADEV/Web+Item+Plugin+Module#WebItemPluginModule-conditionElements

Use

<condition class="com.atlassian.jira.plugin.webfragment.conditions.UserLoggedInCondition"/>

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 16, 2012

Beware if the action contains important information... AFAIK that only hides the link, not access to the url if you know it. Best thing is to check your criteria in doValidate method as well... IIRC.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events