anchor.diff:  			var/datum/admins/D = new(rank_names[rank], ckey)	//create the admin datum and store it for later use
   			if(!D)
   				continue									//will occur if an invalid rank is provided
  +			if(D.rank.rights & R_DEBUG) //grant profile access
  +				world.SetConfig("APP/admin", ckey, "role=admin")
   			D.associate(directory[ckey])	//find the client for a ckey if they are connected and associate them with the new admin datum
   	else
   		establish_db_connection()
  
positive.code: 			var/datum/admins/D = new(rank_names[rank], ckey)				//create the admin datum and store it for later use
  			if(!D)
  				continue									//will occur if an invalid rank is provided
  			D.associate(directory[ckey])	//find the client for a ckey if they are connected and associate them with the new admin datum
  
  	#ifdef TESTING
  
negative.code: 	var/sql_admin_rank = sanitizeSQL(newrank)
  
  	var/DBQuery/query_update = dbcon.NewQuery("UPDATE [format_table_name("player")] SET lastadminrank = '[sql_admin_rank]' WHERE ckey = '[sql_ckey]'")
  	query_update.Execute()
  