Skip to content

Commit

Permalink
Remove metodo inexistente
Browse files Browse the repository at this point in the history
  • Loading branch information
guaycuru committed May 22, 2017
1 parent b113a63 commit 20ea16d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
12 changes: 5 additions & 7 deletions common/common.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,17 @@
$_SESSION['last_pg'] = $_SERVER['REQUEST_URI'];
header("Location: ".CONFIG_URL.CONFIG_URL_LOGIN);
}
if(!defined('NO_DENIAL') || NO_DENIAL === false)
Sem_Permissao();
if(!defined('NO_DENIAL') || NO_DENIAL === false) {
if((defined('JSON')) && (JSON === true))
Base::Error_JSON('Login necessário.');
exit;
}
}
}

if((defined('NO_SESSION')) && (NO_SESSION === true))
session_write_close();

/*if(($_Usuario === null) || ($_Usuario->getAdmin() === false))
die("O GDE está em Manutenção, volte mais tarde...");*/

//<meta name="robots" content="noindex, nofollow" />

if((!defined('HTML')) || (HTML === true)) {
if(!defined('TITULO'))
define('TITULO', '');
Expand Down
5 changes: 2 additions & 3 deletions views/imprimir-horario.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@

$UsuarioAluno = ($Aluno->getUsuario(false) !== null) ? $Aluno->getUsuario(false) : new Usuario();
$pode_ver = $_Usuario->Pode_Ver($UsuarioAluno, 'horario');
if ((is_array($pode_ver) && !$pode_ver[0]) || !$pode_ver) {
Sem_Permissao();
}
if((is_array($pode_ver) && !$pode_ver[0]) || !$pode_ver)
exit;

$meu = ($_Usuario->getAluno(true)->getID() == $Aluno->getID());
$limpos = Util::Horarios_Livres($Horario);
Expand Down

0 comments on commit 20ea16d

Please sign in to comment.