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 Leaders.
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

1 vote
Answer accepted
Jozef Kotlár
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.
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 Leaders.
March 2, 2013

Thanks. It worked.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events