This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
stats:proc:changeattributes_exam [2011/09/28 23:49] Patrick Michel |
stats:proc:changeattributes_exam [2011/09/29 19:22] Patrick Michel |
||
---|---|---|---|
Line 2: | Line 2: | ||
<code xcend> | <code xcend> | ||
- | changeAttributes(ident id, string title, string date, string time, string location) { | + | changeAttributes(ident uid, ident id, string title, string date, string time, string location) { |
+ | assume exists //accounts/account[uid]/admin || exists //accounts/account[uid]/examiner[id]; | ||
assume exists //exams/exam[id]; # implicitly true in OO implementations | assume exists //exams/exam[id]; # implicitly true in OO implementations | ||
Line 9: | Line 11: | ||
update //exams/exam[id]/time time; | update //exams/exam[id]/time time; | ||
update //exams/exam[id]/location location; | update //exams/exam[id]/location location; | ||
- | } # roles: admin | + | } |
</code> | </code> | ||