Admin Role - acltc/job-hunter GitHub Wiki

Admins have a few additional views and enhanced capabilities.

  1. Admins can create user by uploading a CSV file with their email, password, password_confirmation, graduation_date.
  2. They can see an index page of all of the interviews that users have scheduled. With apologies to Roy T. Fielding, there is a non-restful action in the controller for displaying all interviews:
def interviews
  @interviews = Lead.where(interview_set: true)
end
  1. They can also see all of the job offers users have received.
def job_offers
  @job_offers = Lead.where(job_offer: true)
end
  1. Admins can also view all user information and see all of the leads created by every user.