Exygy/rails-project-manager — pull request #4 by dstavis (2014-08-14 22:52:07+00:00)
Title: Owners

Completed 3.

The current_user is made an owner of any project they create.
Only owners can edit or delete projects.
Only viewers and owners can "show" a project.
Used complicated version.

3. Limit project access:
Only project owners should be able to edit or delete a project
Only project owners and viewers should be able to view a project
When you create a project, you should automatically be added as an "owner"

Hint: to do this, you should use the “complicated version” of linking projects to users that is commented out in the project.rb class.