I'm using Deadbolt for authorization. I need to redirect an user if he is present (subjectPresent
). For example, this controller renders the signup page:
public static Result signup() {
return ok(signup.render())
}
But if a user is already present (then he's already registered) the above controller has to redirect him to his profile page: return ok(profilePage.render())
How can do it with annotation?