August 2015
Intermediate to advanced
576 pages
18h 13m
English
This chapter covers
At the end of chapter 7, you learned a basic form of authorization based on a Boolean field called admin on the users table. If this field is set to true, the user is an admin user, and can therefore access the create/destroy functions of the Project resource, as well as an admin namespace where they can perform CRUD on the User resource.
In this chapter, you’ll expand on authorization options by implementing a broader authorization system using a Role model. The records for this model’s ...