maxjustus/sinatra-authentication — pull request #40 by darora (2012-10-15 15:29:17+00:00)
Title: Users shouldn't be able to see each other's details

Added a snippet to get '/users/:id' that redirects to home if the requested ID isn't the the current user's id, and the current user isn't an admin.