The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to know whether the user is admin or not.

Akira Tsuchiya
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 Champions.
March 2, 2013

In AbstractProjectTabPanel, implement the code below.

protected Map<String, Object> createVelocityParams(BrowseContext browseContext) {

User user = browseContext.getUser();

}

I wnat to know whether the user is admin or not.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Deleted user
March 2, 2013

Have a look at UserUtil compnent available through injection or ComponentAccessor.

Akira Tsuchiya
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 Champions.
March 2, 2013

Thanks. It worked.

TAGS
AUG Leaders

Atlassian Community Events