app/controllers/versions_controller.rb
# limit to staff members until user trust is implemented
limit to staff members until user trust is implemented
limit to staff members until user trust is implemented
def limit_to_staff
    authenticate_user!
    unless current_user.admin?
      raise ActionController::RoutingError.new('Not Found')
    end
  end
def limit_to_staff authenticate_user! unless current_user . admin? raise ActionController :: RoutingError . new ( 'Not Found' ) end end
limit to staff members until user trust is implemented
limit to staff members until user trust is implemented