User Tools

Site Tools


stats:proc:revokeexaminerrights

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
stats:proc:revokeexaminerrights [2011/09/27 20:37]
Patrick Michel created
stats:proc:revokeexaminerrights [2013/07/10 12:32] (current)
Line 2: Line 2:
  
 <code xcend> <code xcend>
-revokeExaminerRights(ident username, ident examId) { +revokeExaminerRights(ident uid, ident username, ident examId) { 
-  assume exists ​//accounts/account[username]/examiner[exam];​ # implies the account exists, which is implicitly true anyway +  assume exists /account[uid]/admin;
-  assume exists //​exams/​exam[examId]/​examiner[account]# implied by integrity and the assumption before+
  
-  ​remove //accounts/​account[username]/​examiner[exam];​ +  ​assume exists ​/​account[username]/​examiner[examId]; # implies the account exists, which is implicitly true anyway 
-  remove //exams/​exam[examId]/​examiner[username];​+  assume exists /exam[examId]/​examiner[username]; # implied by integrity and the assumption before 
 + 
 +  remove /account[username]/examiner[examId];​ 
 +  remove ​/​exam[examId]/​examiner[username];​
 } }
 </​code>​ </​code>​
stats/proc/revokeexaminerrights.1317148661.txt.gz · Last modified: 2011/09/27 20:37 by Patrick Michel