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