Mackenzie-Frey / brownfield-of-dreams

Brownfield of Dreams is a video tutorial platform in which additional functionality was built on an existing codebase.
https://brownfield-dreams.herokuapp.com/
1 stars 0 forks source link

Hide 'classroom content' from non-logged in users. #10

Open mikedao opened 5 years ago

mikedao commented 5 years ago

Currently all tutorials are visible to anyone. We want to make tutorials marked as "classroom content" viewable only if the user is logged in.

The tutorials table has a boolean column for classroom that should be used for this story.

&&Revisit classroom content to ensure the user only activated users can see.

Mackenzie-Frey commented 5 years ago

Route without (video) controller: /tutorials/:tutorial_id/videos /tutorials/:tutorial_id/videos/:id /video

tag_path and root_path direct to same index.html view (but tag_path takes in params). I decided to test root_path only.

Mackenzie-Frey commented 5 years ago

Should this story take into account the current_user being an active current user?