Skip to content

Commit

Permalink
Cosas turbias podían pasar
Browse files Browse the repository at this point in the history
  • Loading branch information
barreeeiroo committed May 3, 2021
1 parent c9d7027 commit 7c43d75
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import gal.sdc.usc.wallstreet.model.Sociedad;
import gal.sdc.usc.wallstreet.model.SuperUsuario;
import gal.sdc.usc.wallstreet.model.Usuario;
import gal.sdc.usc.wallstreet.repository.ReguladorDAO;
import gal.sdc.usc.wallstreet.repository.UsuarioDAO;
import gal.sdc.usc.wallstreet.repository.helpers.DatabaseLinker;
import gal.sdc.usc.wallstreet.util.Comunicador;
Expand Down Expand Up @@ -57,6 +58,12 @@ private void invitar(ActionEvent e) {
return;
}

if (u.equals(super.getDAO(ReguladorDAO.class).getRegulador().getUsuario())) {
if (txtIdentificador.getValidators().size() == 1) txtIdentificador.getValidators().add(usuarioNoExiste);
txtIdentificador.validate();
return;
}

if (u.getSociedad() != null) {
if (txtIdentificador.getValidators().size() == 1) txtIdentificador.getValidators().add(usuarioYaSociedad);
txtIdentificador.validate();
Expand Down

0 comments on commit 7c43d75

Please sign in to comment.