You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to reproduce
Teacher created course (id: {{courseIdForMaterials}})
Post {{host}}/api/v1/courses
{"title": "How to create test cases1 {{coursePostfix}}","description": "Basic course about test design technique","visible": true,"categoryId": {{categoryIdForMaterial}}}
Teacher 2 tries to add a material in teacher's course
POST {{host}}/api/v1/courses/{{courseIdForMaterials}}/materials
Request Body
{"title": "Additional material {{materialPostfix}}","data": "stringstri","order": 0}
Actual behavior
Status code is 200
Response time is less than 1000 ms
Teacher 2 added a new material in the teacher's course
Expected behavior
Status code is 403
Response time is less than 1000 ms
Teacher 2 can't add a new material in the teacher's course
The error text message ("You're not owner of this course, you can't change/remove it") is correct Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered:
Tatyana-Kravchenko
changed the title
Teacher 2 can't add new material in teacher's course
Teacher 2 tries to add new material in teacher's course - Unexpected Status code
Jul 1, 2022
Tatyana-Kravchenko
changed the title
Teacher 2 tries to add new material in teacher's course - Unexpected Status code
Teacher 2 tries to add new material in teacher's course - Unexpected Behaviour
Jul 1, 2022
viraxslot
changed the title
Teacher 2 tries to add new material in teacher's course - Unexpected Behaviour
A teacher can add a material to other teacher's course
Jul 15, 2022
@Tatyana-Kravchenko I think about collaboration. What do you think if we convert this bug to a feature? Maybe a teacher can invite the other teacher to work together on a course.
Steps to reproduce
Teacher created course (id: {{courseIdForMaterials}})
Post {{host}}/api/v1/courses
Teacher 2 tries to add a material in teacher's course
POST {{host}}/api/v1/courses/{{courseIdForMaterials}}/materials
Request Body
Actual behavior
Expected behavior
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: