User Tools

Site Tools


stats:proc:revokeassistantrights

Revoke Assistant Rights

revokeAssistantRights(ident uid, ident username, ident exerciseId) {
  assume exists /account[uid]/admin;
 
  assume exists /account[username]/assistant[exerciseId]; # implies the account exists, which is implicitly true anyway
  assume exists /exercise[exerciseId]/assistant[username]; # implied by integrity and the assumption before
 
  remove /account[username]/assistant[exerciseId];
  remove /exercise[exerciseId]/assistant[username];
}
stats/proc/revokeassistantrights.txt · Last modified: 2013/07/10 12:32 (external edit)