adding checks
Closed this issue · 0 comments
mitalirs commented
Is your feature request related to a problem? Please describe.
- currently, a user can upvote/downvote their own ans/qs/comment
- and a user is allowed to answer a qs that they created
Describe the solution you'd like
- adding some code to upvote and downvote routes to forbid a user to upvote/downvote their ans/qs/comment
- and some code to prevent user to answer questions that they created