User Tools

Site Tools


stats:proc:grantadminrights

Grant Admin Rights

grantAdminRights(ident uid, ident username) {
  assume exists /account[uid]/admin;
 
  assume exists /account[username]; # implicitly true in OO implementations
  assume not exists /account[username]/admin;
 
  insert /account[username] <admin />;
}
stats/proc/grantadminrights.txt · Last modified: 2013/07/10 12:32 (external edit)