Ruta personalizada por Empresa
This commit is contained in:
@@ -56,7 +56,7 @@ Public Class SIGCRM : Implements IHttpHandler, IRequiresSessionState
|
||||
Dim Usuario As Usuario = UsuarioActual(context)
|
||||
|
||||
If Not IsNothing(Usuario) Then
|
||||
Dim Url = String.Format("{0}\Empresas\{1}\Acercamientos\{2}\Imagenes\{3}", ModExtensiones.DirectorioBaseEmpresas, Usuario.CveEmpresa, CveAcercamiento, Archivo)
|
||||
Dim Url = String.Format("{0}Acercamientos\{1}\Imagenes\{2}", Usuario.Empresa.Ruta, CveAcercamiento, Archivo)
|
||||
|
||||
If File.Exists(Url) Then
|
||||
context.Response.ContentType = String.Format("image/{0}", Extension)
|
||||
|
||||
Reference in New Issue
Block a user