Method authorization
viejodecaldas opened this issue · comments
Miguel Osorio commented
Hi,
I want to know if there is a way to do some method authorization via annotations, like you do in Java, checking the role or the user group.
Thanks in advance!
Manabu Nakamura commented
Hi,
You can create annotation macro like follows.
@authority(Admin)
def index = Action {
...
}
convert to
def index = StackAction(AuthorityKey -> Admin) {
...
}
Best