anchor.diff:  		if(D.rank in GLOB.protected_ranks)
   			to_chat(usr, "<span class='admin prefix'>Editing the flags of this rank is blocked by server configuration.</span>")
   			return
  -	if(CONFIG_GET(flag/load_legacy_ranks_only) && (task == "rank" || task == "permissions"))
  -		to_chat(usr, "<span class='admin prefix'>Database rank loading is disabled, only temporary changes can be made to an admin's rank or permissions.</span>")
  -		use_db = FALSE
  -		skip = TRUE
  +	if(CONFIG_GET(flag/load_legacy_ranks_only) && (task == "add" || task == "rank" || task == "permissions"))
  +		to_chat(usr, "<span class='admin prefix'>Database rank loading is disabled, only temporary changes can be made to a rank's permissions and permanently creating a new rank is blocked.</span>")
  +		legacy_only = TRUE
   	if(check_rights(R_DBRANKS, FALSE))
   		if(!skip)
   			if(!SSdbcore.Connect())
  
positive.code: 	message_admins("[key_name_admin(usr)] edited the admin rank of [admin_ckey] to [new_rank] [use_db ? "permanently" : "temporarily"]")
  	log_admin("[key_name(usr)] edited the admin rank of [admin_ckey] to [new_rank] [use_db ? "permanently" : "temporarily"]")
  
  /datum/admins/proc/change_admin_flags(admin_ckey, use_db, datum/admins/D)
  	var/new_flags = input_bitfield(usr, "Include permission flags<br>[use_db ? "This will affect ALL admins with this rank." : "This will affect only the current admin [admin_ckey]"]", "admin_flags", D.rank.include_rights, 350, 590, allowed_edit_list = usr.client.holder.rank.can_edit_rights)
  	if(isnull(new_flags))
  		return
  
negative.code: 	log_admin("[key_name(usr)] forcefully deadmined [admin_ckey]")
  	D.deactivate() //after logs so the deadmined admin can see the message.
  
  /datum/admins/proc/change_admin_rank(admin_ckey, use_db, datum/admins/D, legacy_only)
  	var/datum/admin_rank/R
  	var/list/rank_names = list()
  	if(!use_db || (use_db && !legacy_only))
  		rank_names += "*New Rank*"
  	for(R in GLOB.admin_ranks)
  		if((R.rights & usr.client.holder.rank.can_edit_rights) == R.rights)
  			rank_names[R.name] = R
  