Guest User

Untitled

a guest
May 26th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. repo = AqRepository.find(params[:id])
  2. if repo.as_right?(current_user)
  3. @repo = repo
  4. else
  5. flash[:warning] = "You don't have sufficient rights"
  6. redirect_to current_user
  7. end
Add Comment
Please, Sign In to add comment