User Tools

Site Tools


stats:proc:revokeexaminerrights

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
stats:proc:revokeexaminerrights [2012/05/29 16:39] – Patrick Michelstats:proc:revokeexaminerrights [2013/07/10 12:32] (current) – external edit 127.0.0.1
Line 3: Line 3:
 <code xcend> <code xcend>
 revokeExaminerRights(ident uid, ident username, ident examId) { revokeExaminerRights(ident uid, ident username, ident examId) {
-  assume exists //accounts/account[uid]/admin;+  assume exists /account[uid]/admin;
  
-  assume exists //accounts/account[username]/examiner[examId]; # implies the account exists, which is implicitly true anyway +  assume exists /account[username]/examiner[examId]; # implies the account exists, which is implicitly true anyway 
-  assume exists //exams/exam[examId]/examiner[username]; # implied by integrity and the assumption before+  assume exists /exam[examId]/examiner[username]; # implied by integrity and the assumption before
  
-  remove //accounts/account[username]/examiner[examId]; +  remove /account[username]/examiner[examId]; 
-  remove //exams/exam[examId]/examiner[username];+  remove /exam[examId]/examiner[username];
 } }
 </code> </code>
stats/proc/revokeexaminerrights.1338302396.txt.gz · Last modified: by Patrick Michel

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki