Guest User

Untitled

a guest
Jan 24th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.46 KB | None | 0 0
  1. Profile.get(springSecurityService.principal.id)
  2. //        def seac = Profile.findByTsutseh("${tID}")
  3.         def profile = LandLordUser.findByProfile(User.get(springSecurityService.principal.id))
  4.             OR
  5.         def profile = LandLordUser.findByProfile(springSecurityService.currentUser)
  6.         if(profile){
  7.             redirect(action: "index", controller: 'profile')
  8.         }
  9.         else {
  10.             redirect(controller: 'profile', action: 'create' )
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment