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 revisionPrevious revision
stats:proc:grantadminrights [2011/09/29 19:30] – Patrick Michelstats:proc:grantadminrights [2013/07/10 12:32] (current) – external edit 127.0.0.1
Line 3: Line 3:
 <code xcend> <code xcend>
 grantAdminRights(ident uid, ident username) { grantAdminRights(ident uid, ident username) {
-  assume exists //accounts/account[uid]/admin;+  assume exists /account[uid]/admin;
  
-  assume exists //accounts/account[username]; # implicitly true in OO implementations +  assume exists /account[username]; # implicitly true in OO implementations 
-  assume not exists //accounts/account[username]/admin;+  assume not exists /account[username]/admin;
  
-  insert //accounts/account[username] <admin />;+  insert /account[username] <admin />;
 } }
 </code> </code>
  
  
stats/proc/grantadminrights.1317317458.txt.gz · Last modified: by Patrick Michel

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki