We study the one-dimensional Hubbard model for two-component fermions with infinitely strong on-site repulsion (t − 0 model) in the presence of disorder. The system admits a factorization of charge and spin degrees of freedom, and this allows one to eliminate the spin degrees of freedom for both open and perioidic boundary conditions. Our analytical treatment demonstrates that the type of disorder drastically changes the nature of the emerging phases. The case of spin-independent disorder can be treated as a single-particle problem with Anderson localization. On the contrary, spin-dependent disorder, which can be realized as a random magnetic field, leads to the many-body localization-delocalization transition. Our results provide an extended physical picture of recent numerical findings.