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