Ive decided to create a new category called "Snippets" to capture small chunks of information which might be useful to other peopleIn Groovy// Get the security...
Ive decided to create a new category called "Snippets" to capture small chunks of information which might be useful to other peopleIn Groovy// Get the security contextdef secCtx = adf.context.getSecurityContext()// Check if user has a given roleif (secCtx.isUserInRole('MyAppRole')) { // get the current user's name def user = secCtx.getUserName() // Do something if user belongs to MyAppRole}In a EL Expression#{securityContext.userName}
Ive decided to create a new category called "Snippets" to capture small chunks of information which might be useful to other peopleIn Groovy// Get the security contextdef secCtx...