X-Git-Url: https://git.llucax.com/mecon/samurai.git/blobdiff_plain/421bca9938fcbe0d0cf3e715a27f0a6bc37c15c3..b49bcec7b53d0fef70585697308ba2473cd961e9:/sistema/www/sistemas/sistemas-abm.php diff --git a/sistema/www/sistemas/sistemas-abm.php b/sistema/www/sistemas/sistemas-abm.php index 639287b..a893fc3 100644 --- a/sistema/www/sistemas/sistemas-abm.php +++ b/sistema/www/sistemas/sistemas-abm.php @@ -31,6 +31,9 @@ require_once 'SAMURAI/Permiso.php'; // }}} // }}} +//VERIFICO SI SE TIENE ACCESO A LA PAGINA{{{ +$SAMURAI_PERM->chequear(SAMURAI_DEVELOPER); +//}}} //CREO LOS OBJETO NECESARIOS {{{ $FORM = new MECON_HTML_QuickForm ('sistemas_abm','post','sistemas-abm'); // }}} @@ -47,7 +50,7 @@ $FORM->addElement ('mdate' , 'fecha_implementacion', 'Fecha Implementacion'); $FORM->addElement ('textarea', 'contacto' , 'Contacto' , array('rows' => '2','cols'=>'50')); $FORM->addElement ('select' , 'permisos' , 'Permisos' , $PERMISOS, array('size' => '5', 'multiple' => 'multiple')); - $FORM->addElement ('hidden' , 'responsable' , $_SESSION['samurai']['login']); + $FORM->addElement ('hidden' , 'responsable' , $_SESSION['usuario']); $group[] = HTML_QuickForm::createElement('submit', 'aceptar' , 'Grabar'); $group[] = HTML_QuickForm::createElement('submit', 'cancelar', 'Cancelar', array ('onClick' => 'javascript:window.location =\'sistemas\';return false;')); $FORM->addGroup($group,'botones');