stats:proc:granttutorrights
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| stats:proc:granttutorrights [2011/09/29 00:02] – Patrick Michel | stats:proc:granttutorrights [2013/07/10 12:33] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| <code xcend> | <code xcend> | ||
| - | grantTutorRights(ident username, ident exerciseId, ident groupId) { | + | grantTutorRights(ident uid, ident username, ident exerciseId, ident groupId) { |
| - | assume exists | + | assume exists /account[uid]/assistant[exerciseId]; |
| - | assume exists | + | |
| | | ||
| - | assume | + | assume exists /account[username]; |
| - | assume not exists | + | assume exists |
| + | |||
| + | assume not exists | ||
| + | assume not exists / | ||
| + | | ||
| - | if not exists | + | if not exists / |
| - | insert | + | insert / |
| fi | fi | ||
| - | insert | + | insert / |
| - | insert | + | insert / |
| - | } # roles: assistant[id] | + | } |
| </ | </ | ||
stats/proc/granttutorrights.1317247332.txt.gz · Last modified: by Patrick Michel
