June 2025
Intermediate to advanced
837 pages
24h 50m
English
Individual pages make up the largest category of resources in your application. You’ve already secured this type with Passport to prevent unauthorized people from accessing protected pages. However, in your application, you can also control at a lower level how your users work with the application’s data.
In this section, you’ll limit the access to data records to the respective creator of the record and add the option to share movies with all users. For this purpose, you use the information stored in the session about the currently logged-in user for both write and read accesses. First, you have to extend the movie table of your database with an additional field, as shown in Listing 9.12 ...
Read now
Unlock full access