using two triggers to open a door

i have 2 boxes with box colliders set to trigger on either side of a door. i want both triggers to open the door but im having trouble. i got it to work for one side but it wont work for hte other. here is my code
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class dooropen : MonoBehaviour {
    public bool open;
    public float smooth;
    public float waitTime;
    public Vector3 currentRotation;
    public Vector3 openRotation;
    public Vector3 closeRotation;
    public GameObject door;
    public GameObject otherTrigger;

    private void Start()
    {
        currentRotation = door.transform.eulerAngles;
        closeRotation = door.transform.eulerAngles;
    }
    private void OnTriggerEnter(Collider other)
    {
        otherTrigger.GetComponent<BoxCollider>().enabled = false;
        open = true;
    }
    private void Update()
    {
            if (open == true)
            {
                currentRotation = Vector3.Lerp(currentRotation, openRotation, smooth * Time.deltaTime);
                door.transform.eulerAngles = currentRotation;
            }
            else
            {
                currentRotation = Vector3.Lerp(currentRotation, closeRotation, smooth * Time.deltaTime);
                door.transform.eulerAngles = currentRotation;
            otherTrigger.GetComponent<BoxCollider>().enabled = true;
        }
    }
    private void OnTriggerExit(Collider other)
    {
        StartCoroutine(wait());
    }

    IEnumerator wait()
    {
        yield return new WaitForSecondsRealtime(waitTime);
        open = false;
    }
}

what i was hping it would do is as soon as the trigger is enabled it owuld disable the box collider on the other trigger so it cant interfere with the opening of the door and then enable it again when it closes and it works fine but if i try to open the door from the other trigger it doesnt work at all. help please.

It disables it so that once it dtarts opening from one way it cant be stopped by another player trying to open it the opposite way. I ficed it though. I created two scripts. Attached one script to both triggers and thr other script to the door to open. I then tested to see if the trigger was hit and if so it tells the door to rotate