Commit 8d81e1aefe74ecd4ed767a8c0bbd41702b6523a1

Authored by bonot
1 parent c4a56ea2
Exists in 2.8 and in 6 other branches 2.2, 2.3, 2.4, 2.5, 2.6, 2.7

Obriga preenchimento de componente quando usuário é apenas professor

ieducar/modules/Avaliacao/Views/DiarioController.php
... ... @@ -12,7 +12,7 @@ class DiarioController extends Portabilis_Controller_Page_ListController
12 12 public function Gerar()
13 13 {
14 14 $userId = Portabilis_Utils_User::currentUserId();
15   - $componenteRequired = $isProfessor = Portabilis_Business_Professor::isProfessor(false, $userId);
  15 + $componenteRequired = Portabilis_Business_Professor::isOnlyProfessor(false, $userId);
16 16  
17 17 $this->inputsHelper()->input('ano', 'ano');
18 18 $this->inputsHelper()->dynamic(['instituicao', 'escola', 'curso', 'serie', 'turma', 'etapa']);
... ...