Until 1978 blacks were not allowed to hold the priesthood, but there never was a ban on blacks at BYU.
What Stanford was protesting was the priesthood ban, not a more comprehensive ban on blacks at BYU.
Not that the priesthood policy didn’t impact the number of blacks attending BYU, but let’s at least discuss it correctly here.