This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
stats:proc:deleteaccount [2011/09/29 00:06] Patrick Michel |
stats:proc:deleteaccount [2011/09/29 19:30] Patrick Michel |
||
---|---|---|---|
Line 2: | Line 2: | ||
<code xcend> | <code xcend> | ||
- | deleteAccount(ident username) { | + | deleteAccount(ident uid, ident username) { |
+ | assume exists //accounts/account[uid]/admin; | ||
+ | assume uid != username; # or do we want to allow an admin to delete himself? | ||
assume exists //accounts/account[username]; | assume exists //accounts/account[username]; | ||
| | ||
Line 20: | Line 23: | ||
| | ||
remove //accounts/account[username]; | remove //accounts/account[username]; | ||
- | } # roles: admin | + | } |
</code> | </code> |