Commit f164717d1c7231e6ff81c52751c564ccf667976c
1 parent
7872c912
Exists in
2.8
and in
6 other branches
Trata visualização do botão reclassificar
Showing
1 changed file
with
8 additions
and
1 deletions
Show diff stats
ieducar/intranet/educar_matricula_det.php
@@ -317,7 +317,7 @@ class indice extends clsDetalhe | @@ -317,7 +317,7 @@ class indice extends clsDetalhe | ||
317 | $this->array_botao[] = 'Falecido'; | 317 | $this->array_botao[] = 'Falecido'; |
318 | $this->array_botao_url_script[] = "go(\"educar_falecido_cad.php?ref_cod_matricula={$registro['cod_matricula']}&ref_cod_aluno={$registro['ref_cod_aluno']}\");"; | 318 | $this->array_botao_url_script[] = "go(\"educar_falecido_cad.php?ref_cod_matricula={$registro['cod_matricula']}&ref_cod_aluno={$registro['ref_cod_aluno']}\");"; |
319 | 319 | ||
320 | - if ($registro['ref_ref_cod_serie']) { | 320 | + if ($registro['ref_ref_cod_serie'] && $this->permissaoReclassificar()) { |
321 | $this->array_botao[] = 'Reclassificar'; | 321 | $this->array_botao[] = 'Reclassificar'; |
322 | $this->array_botao_url_script[] = "go(\"educar_matricula_reclassificar_cad.php?ref_cod_matricula={$registro['cod_matricula']}&ref_cod_aluno={$registro['ref_cod_aluno']}\")"; | 322 | $this->array_botao_url_script[] = "go(\"educar_matricula_reclassificar_cad.php?ref_cod_matricula={$registro['cod_matricula']}&ref_cod_aluno={$registro['ref_cod_aluno']}\")"; |
323 | } | 323 | } |
@@ -430,6 +430,13 @@ class indice extends clsDetalhe | @@ -430,6 +430,13 @@ class indice extends clsDetalhe | ||
430 | return $acesso->permissao_excluir(627, $this->pessoa_logada, 7, null, true); | 430 | return $acesso->permissao_excluir(627, $this->pessoa_logada, 7, null, true); |
431 | } | 431 | } |
432 | 432 | ||
433 | + public function permissaoReclassificar() | ||
434 | + { | ||
435 | + $acesso = new clsPermissoes(); | ||
436 | + | ||
437 | + return $acesso->permissao_cadastra(Process::RECLASSIFY_REGISTRATION, $this->pessoa_logada, 7, null, true); | ||
438 | + } | ||
439 | + | ||
433 | public function canCancelTransferencia($matriculaId) | 440 | public function canCancelTransferencia($matriculaId) |
434 | { | 441 | { |
435 | $sql = "SELECT transferencia_solicitacao.cod_transferencia_solicitacao | 442 | $sql = "SELECT transferencia_solicitacao.cod_transferencia_solicitacao |