User Tools

Site Tools


stats:proc:grantadminrights

Differences

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

Link to this comparison view

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>​
  
  
stats/proc/grantadminrights.1317147384.txt.gz · Last modified: 2011/09/27 20:16 by Patrick Michel