Extract submission comment logic to #new_comment
Fix bug that allows a forged post request to create a comment, while the submission is not open for commenting.
Showing
- comments/templates/comments/new_comment.html 1 addition, 1 deletioncomments/templates/comments/new_comment.html
- comments/test_views.py 53 additions, 2 deletionscomments/test_views.py
- comments/views.py 13 additions, 6 deletionscomments/views.py
- submissions/factories.py 1 addition, 1 deletionsubmissions/factories.py
- submissions/templates/submissions/submission_detail.html 2 additions, 31 deletionssubmissions/templates/submissions/submission_detail.html
- submissions/test_views.py 18 additions, 0 deletionssubmissions/test_views.py
- submissions/views.py 2 additions, 35 deletionssubmissions/views.py
- theses/templates/theses/thesis_detail.html 1 addition, 1 deletiontheses/templates/theses/thesis_detail.html
Loading
Please register or sign in to comment