- User can see profile (or comment/like picture) if a user is public, my profile or user is a leader for current user
- We need to be careful to change in every view
has_one: does the at(0) on the collection, it works if we know we just have one element (example: owner)
Be careful with the logic, true/false and && or ||
We do tests to see if they are working (and sometimes the code for the test is longer than the app's)
Authentication != authorization. Device for first, and pundit for second
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)