This shows you the differences between two versions of the page.
stats:proc:revokeadminrights [2011/09/28 23:50] Patrick Michel |
stats:proc:revokeadminrights [2013/07/10 12:32] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Revoke Admin Rights ====== | ||
- | |||
- | <code xcend> | ||
- | revokeAdminRights(ident username) { | ||
- | 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; | ||
- | } # roles: admin | ||
- | </code> | ||