forked from qwerty/tupali
Correccion seguridad cx empresa
This commit is contained in:
parent
3461f005e6
commit
89651284c1
@ -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>";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user