code-corps / code-corps-api

Elixir/Phoenix API for Code Corps.
https://www.codecorps.org
MIT License
234 stars 86 forks source link

Scope conversation parts for users who are the target of the conversation #1322

Closed joshsmith closed 6 years ago

joshsmith commented 6 years ago

Problem

Now that we have completed #1318, we have conversation part types that are not intended for a user to see, including a project's notes, the closed/open parts, etc.

We should amend the conversation part policy to scope only by those parts the user should have access to, which as of this writing should be just the comment part_type.