This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
stats:proc:unregisterstudent [2011/10/15 20:20] Patrick Michel |
stats:proc:unregisterstudent [2011/11/07 16:02] Patrick Michel |
||
---|---|---|---|
Line 10: | Line 10: | ||
assume size(//exercises/exercise[id]/students/student[studentId]/result) = 0; # don't allow unregistering if results are there | assume size(//exercises/exercise[id]/students/student[studentId]/result) = 0; # don't allow unregistering if results are there | ||
+ | assume not exists //exercises/exercise[id]/students/student[studentId]/group; # don't allow if signed in a group | ||
| | ||
remove //exercises/exercise[id]/students/student[studentId]; | remove //exercises/exercise[id]/students/student[studentId]; | ||
} | } | ||
</code> | </code> |