X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/blobdiff_plain/58928788835f38c680be09a8d88e54852d9c4410..ac473b33edf95480fa85b5025447595ef9b555c2:/src/admin.creditos.php diff --git a/src/admin.creditos.php b/src/admin.creditos.php index f405eeb..c04af01 100644 --- a/src/admin.creditos.php +++ b/src/admin.creditos.php @@ -12,16 +12,10 @@ require_once 'lib/pagina.php'; require_once 'lib/validacion.php'; require_once 'lib/Usuario.php'; require_once 'lib/admin.forms.php'; +require_once 'lib/admin.util.php'; marco_cabecera('Asignación de créditos'); -// Solo para admins -if (!$_SESSION['user']->esAdmin()) { - error('Acceso denegado!'); - marco_pie('Leandro Lucarella', 'llucare@fi.uba.ar'); - exit; -} - // Si llenó el formulario if (isset($_POST['admin_cred']) and isset($_POST['admin_cred_user']) and isset($_POST['admin_cred_pass']))