DASSL / ClassDB

An open-source system to let students experiment with relational data
https://dassl.github.io/ClassDB/
Other
7 stars 2 forks source link

Function createRole ignores inconsistent isTeam value for known roles (W) #158

Closed smurthys closed 6 years ago

smurthys commented 6 years ago

When function createRole is called for a known role and the parameter isTeam is inconsistent with what is already stored for the known role, the function silently updates the row. The update itself is not harmful because it does not overwrite the stored isTeam, but the silence has serious impact on functions createStudent etc. which require roles to be users.

createRole should raise an exception in this case.

smurthys commented 6 years ago

Fixed in PR #154