Jump to content

Recommended Posts

Posted

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script1.groovy: 2: Ambiguous expression could be a parameterless closure expression, an isolated open code block, or it may continue a previous statement;
   solution: Add an explicit parameter list, e.g. {it -> ...}, or force it to be treated as an open block by giving it a label, e.g. L:{...}, and also either remove the previous newline, or add an explicit semicolon ';' @ line 2, column 13.
               { it.getRoleName() in ['ROLE_ADMINISTRATOR','ROLE_SALES_MANAGER'] }

 

I am trying to add security file in a domain and create a adhoc report.

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 year later...
Posted

authentication.getPrincipal().getRoles().any{ it.getRoleName() in ['ROLE_ANONYMOUS'] }

The code must be in one line not splitted over two or more lines.

 

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...