Resolve "Leave edition as a teacher"
Added an extra check in permissions service so that if the user is the only teacher in the edition, then they can't leave the edition they are in. Could not add test cases as it is a private method.
Closes #698 (closed)
Edited by Ada Turgut