Using Velocity, how does one get page permissions? I'm ultimately looking to develop an permission indicator system (using a series of icons) that will display if the user/group has permission to a space, set of pages (heirarchy), and/or a single page itself.
I've read how to get user permissions but this wouldn't solve the problem I'm facing such as the following:
#set ($pagePermission = $permissionHelper.canView($remoteUser, $action.page))
So I believe I figured it out.
## get space-level permissions #foreach ($permission in $space.getPermissions()) #set($spacePermission = $spacePermission + "@@" + $permission) ## get permissions #end ## get page-level permissions #set ($groupPagePermissions = $<proprietaryHelper>.contentPermissionManager.getContentPermissionSets($page, "View"))
More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...
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!
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