This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
stats:proc:revokeadminrights [2011/09/28 21:19] Patrick Michel |
stats:proc:revokeadminrights [2013/07/10 12:32] (current) |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| <code xcend> | <code xcend> | ||
| - | revokeAdminRights(ident username) { | + | revokeAdminRights(ident uid, ident username) { |
| - | assume exists //accounts/account[username]/admin; # implies the account exists, which is implicitly true anyway | + | assume exists /account[uid]/admin; |
| - | assume size(//accounts/account/admin) > 1; # kind of a practical constraint | + | assume exists /account[username]/admin; # implies the account exists, which is implicitly true anyway |
| - | remove //accounts/account[username]/admin; | + | assume size(/account/admin) > 1; # kind of a practical constraint |
| + | |||
| + | remove /account[username]/admin; | ||
| } | } | ||
| </code> | </code> | ||