This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
stats:proc:granttutorrights [2011/11/02 14:37] Patrick Michel |
stats:proc:granttutorrights [2012/05/29 16:45] Patrick Michel |
||
---|---|---|---|
Line 3: | Line 3: | ||
<code xcend> | <code xcend> | ||
grantTutorRights(ident uid, ident username, ident exerciseId, ident groupId) { | grantTutorRights(ident uid, ident username, ident exerciseId, ident groupId) { | ||
- | assume exists //accounts/account[uid]/assistant[id]; | + | assume exists //accounts/account[uid]/assistant[exerciseId]; |
| | ||
assume exists //accounts/account[username]; # implicitly true in OO implementations | assume exists //accounts/account[username]; # implicitly true in OO implementations | ||
Line 9: | Line 9: | ||
| | ||
assume not exists //accounts/account[username]/tutor[exerciseId]/group[groupId]); | assume not exists //accounts/account[username]/tutor[exerciseId]/group[groupId]); | ||
- | assume not exists //exercises/exercise[exerciseId]/groups/group[groupId]/tutor[account]; | + | assume not exists //exercises/exercise[exerciseId]/groups/group[groupId]/tutor[username]; |
# implied by integrity and the assumption before | # implied by integrity and the assumption before | ||