Closed begedin closed 6 years ago
I'm not 100% positive on this, but we likely need a :show endpoint in ConversationController
:show
ConversationController
show?
current_user
conversation.user_id == current_user.id
conversation.message.author_id == current_user.id
conversation.message.project
id
Problem
I'm not 100% positive on this, but we likely need a
:show
endpoint inConversationController
Subtasks
show?
policycurrent_user
is authorized ifconversation.user_id == current_user.id
current_user
is also authorized ifconversation.message.author_id == current_user.id
current_user
is also authorized if they are admin or higher onconversation.message.project
ConversationController
id