Forums

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

Custom macro to determine if user has space admin permission

Christopher Martino September 19, 2018

I'm trying to create a very simple custom macro that does the following:

#if ( User Has Space Admin Permission In Current Space )
// display a link
#end

What exactly should I add to the if statement above to get this to work? I've tried a bunch of different things, and I think I'm just not understanding the syntax... Any help is greatly appreciated!

1 answer

0 votes
Christopher Martino September 20, 2018

Tried the following, but it didn't work.

#if ($action.hasPermissionForSpace(ADMINISTER,SPACEKEY))
<a href='#'>Link</a>
#end

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events