EugeneHerasymchuk / testinok

0 stars 0 forks source link

How to restrict many-to-many table (Students_Tests) to allow CRUD only for Tests and Students that was created by Teacher #1

Closed EugeneHerasymchuk closed 3 years ago

EugeneHerasymchuk commented 3 years ago

image

EugeneHerasymchuk commented 3 years ago

done by restricting change only if teacher_id is same for Test and Student