Se arregla el poder añadir y borrar curriculums

git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_Intranet/trunk/src@91 e2b1556b-49f8-d141-9351-52d6861a72d9
This commit is contained in:
roberto 2011-06-07 08:15:27 +00:00
parent 08af5e477c
commit 5f480ca2b3
4 changed files with 5 additions and 0 deletions

View File

@ -83,6 +83,8 @@ class Candidato extends Persona {
* Otro - Excepción
*/
$sesion = $this->usuario->getValor("oid");
echo $this->usuario->tieneRol(1);
echo $this->usuario->tieneRol(4);
if ($this->usuario->tieneRol(1) || $this->usuario->tieneRol(4)) {
parent::removeCurriculum($curriculum, $fecha, $this->usuario->getValor("nombre"));
} else {

View File

@ -391,6 +391,7 @@ echo '<tr><td colspan="6">';
echo '</td></tr><tr>';
echo '<input type="hidden" name="MAX_FILE_SIZE" value="10000000"><td colspan="6" textalign="right">'.$locale['125'].'<br>';
echo '<input name="userfile" type="file">';
echo '<input value="Subir" type="submit">';
echo '</td></tr></table>';
echo '<input type="submit" value="'.$locale['802'].'" class="button">';

View File

@ -2,6 +2,7 @@
include("seguridad.php");
include("functions.php");
include_once("Objects/Candidato.php");
$oid = stripinput($_GET["oid"]);
$curriculum = stripinput($_GET["curriculum"]);

View File

@ -474,6 +474,7 @@ echo '<tr><td colspan="6">';
echo '</td></tr><tr>';
echo '<input type="hidden" name="MAX_FILE_SIZE" value="10000000"><td colspan="6" textalign="right">'.$locale['125'].'<br>';
echo '<input name="userfile" type="file">';
echo '<input value="Subir" type="submit">';
echo '</td></tr></table>';
echo '<input type="submit" value="'.$locale['1580'].'" class="button">';