Different experiences for different users
Learning Objectives
Different experiences for different users
TODO: Introduce an “admin” role which gets an additional “delete” button
TODO: Introduce a “view posting stats” page that only the admin can access
Extracting common functionality
Learning Objectives
Extracting common functionality
TODO: Extract common code to determine whether the current user is an admin across multiple views