I am writing the code asif(!"Admin".equals(role) || !"IAP_PMO".equals(role)) return new ModelAndView("error") It is not checking the both conditions but if I write only one like if(!"Admin".equals(role)) then its working.What is the error?
if(!"Admin".equals(role) || !"IAP_PMO".equals(role)) return new ModelAndView("error")
if(!"Admin".equals(role))
Aucun commentaire:
Enregistrer un commentaire