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] – created Patrick Michelstats:proc:grantadminrights [2013/07/10 12:32] (current) – external edit 127.0.0.1
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: by Patrick Michel

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki