User Tools

Site Tools


stats:proc:grantadminrights

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
stats:proc:grantadminrights [2011/09/28 23:50]
Patrick Michel
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 
-# roles: admin+  assume not exists ​/account[username]/​admin;​ 
 + 
 +  insert ​/​account[username] <admin />; 
 +}
 </​code>​ </​code>​
  
  
stats/proc/grantadminrights.1317246602.txt.gz · Last modified: 2011/09/28 23:50 by Patrick Michel