anchor.diff:  			D.rank.rights = new_flags &= ~new_exclude_flags
   			D.rank.include_rights = new_flags
   			D.rank.exclude_rights = new_exclude_flags
  +			D.rank.can_edit_rights = new_can_edit_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"]")
  
positive.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 == "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(check_rights(R_DBRANKS, FALSE))
  		if(!skip)
  			if(!SSdbcore.Connect())
  
negative.code: 	var/use_db
  	var/task = href_list["editrights"]
  	var/skip
  	var/legacy_only
  	if(task == "activate" || task == "deactivate" || task == "sync")
  		skip = TRUE
  	if(!CONFIG_GET(flag/admin_legacy_system) && CONFIG_GET(flag/protect_legacy_admins) && task == "rank")
  