This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
stats:proc:grantexaminerrights [2011/09/29 19:31] Patrick Michel |
stats:proc:grantexaminerrights [2012/05/29 16:47] Patrick Michel |
||
---|---|---|---|
Line 8: | Line 8: | ||
assume exists //exams/exam[examId]; | assume exists //exams/exam[examId]; | ||
- | assume not exists //accounts/account[username]/examiner[exam]); | + | assume not exists //accounts/account[username]/examiner[examId]); |
- | assume not exists //exams/exam[examId]/examiner[account]); # implied by integrity and the assumption before | + | assume not exists //exams/exam[examId]/examiner[username]); # implied by integrity and the assumption before |
insert //accounts/account[username] <examiner exam=[examId] />; | insert //accounts/account[username] <examiner exam=[examId] />; |