This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
stats:proc:revokeadminrights [2011/09/27 20:16] Patrick Michel created |
stats:proc:revokeadminrights [2011/09/28 23:50] Patrick Michel |
||
---|---|---|---|
Line 4: | Line 4: | ||
revokeAdminRights(ident username) { | revokeAdminRights(ident username) { | ||
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; | ||
- | } | + | } # roles: admin |
</code> | </code> | ||