This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
stats:proc:revokeadminrights [2011/09/28 23:50] Patrick Michel |
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 | ||
Line 8: | Line 10: | ||
remove //accounts/account[username]/admin; | remove //accounts/account[username]/admin; | ||
- | } # roles: admin | + | } |
</code> | </code> | ||