anchor.diff:  	var/new_can_edit_flags = input_bitfield(usr, "Editable permission flags<br>These are the flags this rank is allowed to edit if they have access to the permissions panel.<br>They will be unable to modify admins to a rank that has a flag not included here.<br>[use_db ? "This will affect ALL admins with this rank." : "This will affect only the current admin [admin_ckey]"]", "admin_flags", D.rank.can_edit_rights, 350, 710, allowed_edit_list = usr.client.holder.rank.can_edit_rights)
   	if(isnull(new_can_edit_flags))
   		return
  -	if(use_db)
  +	if(use_db || legacy_only)
   		var/old_flags
   		var/old_exclude_flags
   		var/old_can_edit_flags
  
positive.code: 			D.rank.rights = new_flags &= ~new_exclude_flags
  			D.rank.include_rights = new_flags
  			D.rank.exclude_rights = new_exclude_flags
  		var/client/C = GLOB.directory[admin_ckey] //find the client with the specified ckey (if they are logged in)
  		D.associate(C) //link up with the client and add verbs
  	message_admins("[key_name_admin(usr)] edited the permissions of [use_db ? " rank [D.rank.name] permanently" : "[admin_ckey] temporarily"]")
  
negative.code: 		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 == "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())
  