User Tools

Site Tools


stats:proc:revokeassistantrights

Differences

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

Link to this comparison view

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