From 27c0b017ee2438099370ff2b937ff852697e90b7 Mon Sep 17 00:00:00 2001 From: fredyrivera Date: Thu, 14 Sep 2017 15:26:42 -0500 Subject: [PATCH] correcion visualizacion de contenido privado a usuarios logueados --- index.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index cf9a213..058eb04 100755 --- a/index.php +++ b/index.php @@ -141,7 +141,7 @@ if ($variable !=''){ $cols_interior ="10"; //$onload = landingpage_contenido_formulario($set); $publico = remplacetas('form_id','id',"$set",'publico',"") ; - if($publico[0] =='1') {$acceso = 1;} + if($publico[0] =='1' OR $_SESSION['id_empresa'] == $id_empresa[0] ) {$acceso = 1;} } elseif($v[0] =='s') { /// s= SET DE DATOS @@ -154,8 +154,11 @@ if ($variable !=''){ $background_imagen = buscar_imagen("$set","","","$id_empresa"); $uri_set = ""; //$onload = landingpage_contenido_formulario($set); + //$onload = "".consultar_contenido_formulario("$set",'5','','','',"$plantilla").""; + $publico = remplacetas('form_id','id',"$set",'publico',"") ; - if($publico[0] =='1') {$acceso = 1;} + if($publico[0] =='1' OR $_SESSION['id_empresa'] == $id_empresa[0] ) {$acceso = 1;} + //$acceso=1; } elseif($v[0] =='S') { $set =$v[1];