Correccion seguridad cx empresa

This commit is contained in:
fredyrivera 2017-10-14 16:56:16 -05:00
parent 3461f005e6
commit 89651284c1

View File

@ -3366,7 +3366,7 @@ if( $tipo !== "" AND $tipo !=="embebido" ) {
$publico = remplacetas('form_id','id',"$form",'modificable',"") ;
$propietario = remplacetas('form_id','id',$form,'id_empresa',"") ;
// $propietario = remplacetas('usuarios','id',$propietario[0],'email',"") ;
if($publico[0] !="0" OR $_SESSION["id_empresa"] !="$propietario[0]") {
if($publico[0] !="0" OR $_SESSION["id_empresa"] =="$propietario[0]") {
$agregar = " <div class='btn btn-default btn-block ' onclick =\"xajax_formulario_embebido_ajax('$form','','nuevo');\"> <i class='glyphicon glyphicon-plus-sign'></i> Agregar ( $_SESSION[id_empresa] $propietario[0] )</a></div>";
}