public ActionResult AdminSelf() { PriceRequestPolicies model = new PriceRequestPolicies() { IsAdmin = false, IsPm = true, IsMultiClient = false //SIEMPRE DEBERIA SER FALSE, EL MULTICLIENTE NO DEBERIA PODER CARGAR P.R. }; return(View("Admin", model)); }
public ActionResult Admin() { int clientId = GetClienteSeleccionado(); int idUser = usuarioRepository.GetUsuarioPerformance(GetUsuarioLogueado()); bool UserPm = usuarioRepository.IsAuthorized(clientId, idUser, "enviarBajaDePrecio"); PriceRequestPolicies model = new PriceRequestPolicies() { IsAdmin = true, IsPm = UserPm, IsMultiClient = (clientId == 194) //LA PU TA MA DRE }; return(View("Admin", model)); }