Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

@Secured Annotation Not Working

 
Mike London
Ranch Hand
Posts: 1208
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a method in a @Controller where I ONLY want that method to execute if the user role="ADMIN".

This method handles the POST from a JSP as shown below.



The problem is that, regardless of the user role, the code in the method executes!

I've tried adding an additional point-cut to the security context file for that @Controller class, but that didn't work either.

Look forward to any suggestions.

Thanks,

mike

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic