User Tools

Site Tools


stats:proc:revokeadminrights

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
stats:proc:revokeadminrights [2011/09/29 19:32]
Patrick Michel
stats:proc:revokeadminrights [2013/07/10 12:32] (current)
Line 3: Line 3:
 <code xcend> <code xcend>
 revokeAdminRights(ident uid, ident username) { revokeAdminRights(ident uid, ident username) {
-  assume exists ​//accounts/​account[uid]/​admin;​+  assume exists /​account[uid]/​admin;​
  
-  assume exists ​//accounts/​account[username]/​admin;​ # implies the account exists, which is implicitly true anyway+  assume exists /​account[username]/​admin;​ # implies the account exists, which is implicitly true anyway
  
-  assume size(//accounts/​account/​admin) > 1; # kind of a practical constraint+  assume size(/​account/​admin) > 1; # kind of a practical constraint
  
-  remove ​//accounts/​account[username]/​admin;​+  remove /​account[username]/​admin;​
 } }
 </​code>​ </​code>​
  
stats/proc/revokeadminrights.1317317535.txt.gz ยท Last modified: 2011/09/29 19:32 by Patrick Michel