X-Git-Url: https://git.llucax.com/mecon/samurai.git/blobdiff_plain/2dd89e44c718262ef75b7c451d947a5e866b3e67..f3692172201650cb32cd500e1add6f5735b02a8c:/sistema/www/permisos/permisos-abm.php?ds=inline diff --git a/sistema/www/permisos/permisos-abm.php b/sistema/www/permisos/permisos-abm.php index 3a29150..0392c50 100644 --- a/sistema/www/permisos/permisos-abm.php +++ b/sistema/www/permisos/permisos-abm.php @@ -21,9 +21,7 @@ // //VERIFICO SI SE TIENE ACCESO A LA PAGINA{{{ - if (!$SAMURAI_PERM->tiene(SAMURAI_DEVELOPER)) { -// header('Location: error') - } +$SAMURAI_PERM->chequear(SAMURAI_PERM_DEVELOPER); //}}} //REQUIRE_ONCE {{{ //MECON {{{ @@ -42,7 +40,7 @@ $FORM->addElement ('header', 'cabecera', 'ABM Permisos'); $FORM->addElement ('hidden', 'id_permiso'); $FORM->addElement ('text' , 'desc_permiso', 'Descripcion', array('size'=>'50')); - $FORM->addElement ('hidden', 'responsable' , $_SESSION['samurai']['login']); + $FORM->addElement ('hidden', 'responsable' , $_SESSION['usuario']); $group[] = HTML_QuickForm::createElement('submit', 'aceptar' , 'Grabar'); $group[] = HTML_QuickForm::createElement('button', 'cancelar', 'Cancelar', array ('onClick' => 'javascript:history.go(-1);return true;')); $FORM->addGroup($group,'botones');