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