User Tools

Site Tools


stats:proc:revokeassistantrights

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
stats:proc:revokeassistantrights [2012/05/29 16:38]
Patrick Michel
stats:proc:revokeassistantrights [2012/05/29 16:38]
Patrick Michel
Line 5: Line 5:
   assume exists //​accounts/​account[uid]/​admin;​   assume exists //​accounts/​account[uid]/​admin;​
  
-  assume exists //​accounts/​account[username]/​exercise[exerciseId];​ # implies the account exists, which is implicitly true anyway+  assume exists //​accounts/​account[username]/​assistant[exerciseId];​ # implies the account exists, which is implicitly true anyway
   assume exists //​exercises/​exercise[exerciseId]/​assistant[username];​ # implied by integrity and the assumption before   assume exists //​exercises/​exercise[exerciseId]/​assistant[username];​ # implied by integrity and the assumption before
  
-  remove //​accounts/​account[username]/​exercise[exerciseId];​+  remove //​accounts/​account[username]/​assistant[exerciseId];​
   remove //​exercises/​exercise[exerciseId]/​assistant[username];​   remove //​exercises/​exercise[exerciseId]/​assistant[username];​
 } }
 </​code>​ </​code>​
  
stats/proc/revokeassistantrights.txt ยท Last modified: 2013/07/10 12:32 (external edit)