Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Profile.get(springSecurityService.principal.id)
- // def seac = Profile.findByTsutseh("${tID}")
- def profile = LandLordUser.findByProfile(User.get(springSecurityService.principal.id))
- OR
- def profile = LandLordUser.findByProfile(springSecurityService.currentUser)
- if(profile){
- redirect(action: "index", controller: 'profile')
- }
- else {
- redirect(controller: 'profile', action: 'create' )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement