This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
stats:proc:deletegrade [2011/09/29 00:53] Patrick Michel |
stats:proc:deletegrade [2011/09/29 19:24] Patrick Michel |
||
---|---|---|---|
Line 2: | Line 2: | ||
<code xcend> | <code xcend> | ||
- | deleteGrade(ident id, ident gradeId) { | + | deleteGrade(ident uid, ident id, ident gradeId) { |
+ | assume exists //accounts/account[uid]/examiner[id]; | ||
assume exists //exams/exam[id]/grades/grade[gradeId]; # implies the exam exists, which is implicitly true anyway | assume exists //exams/exam[id]/grades/grade[gradeId]; # implies the exam exists, which is implicitly true anyway | ||
remove //exams/exam[id]/grades/grade[gradeId]; | remove //exams/exam[id]/grades/grade[gradeId]; | ||
- | } # roles: examiner[id] | + | } |
</code> | </code> | ||