This is an old revision of the document!
revokeAssistantRights(ident uid, ident username, ident exerciseId) { assume exists //accounts/account[uid]/admin; assume exists //accounts/account[username]/assistant[exerciseId]; # implies the account exists, which is implicitly true anyway assume exists //exercises/exercise[exerciseId]/assistant[username]; # implied by integrity and the assumption before remove //accounts/account[username]/assistant[exerciseId]; remove //exercises/exercise[exerciseId]/assistant[username]; }