forked from qwerty/tupali
Correccion seguridad cx empresa
This commit is contained in:
parent
895aebca83
commit
7bd90f24a1
@ -3364,7 +3364,9 @@ $formulario_tabla_temporal = formulario_tabla_temporal($form);
|
||||
|
||||
if( $tipo !== "" AND $tipo !=="embebido" ) {
|
||||
$publico = remplacetas('form_id','id',"$form",'modificable',"") ;
|
||||
if($publico[0] !="0" OR @$_SESSION[id] !="") {
|
||||
$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]") {
|
||||
|
||||
$agregar = " <div class='btn btn-default btn-block ' onclick =\"xajax_formulario_embebido_ajax('$form','','nuevo');\"> <i class='glyphicon glyphicon-plus-sign'></i> Agregar </a></div>";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user