This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
stats:proc:grantadminrights [2011/09/27 20:16] Patrick Michel created |
stats:proc:grantadminrights [2013/07/10 12:32] (current) |
||
---|---|---|---|
Line 2: | Line 2: | ||
<code xcend> | <code xcend> | ||
- | grantAdminRights(ident username) { | + | grantAdminRights(ident uid, ident username) { |
- | assume exists //accounts/account[username]; # implicitly true in OO implementations | + | assume exists /account[uid]/admin; |
- | assume not exists //accounts/account[username]/admin; | + | |
- | insert //accounts/account[username] <admin />; | + | assume exists /account[username]; # implicitly true in OO implementations |
+ | assume not exists /account[username]/admin; | ||
+ | |||
+ | insert /account[username] <admin />; | ||
} | } | ||
</code> | </code> | ||