From be2303c4142d6898a472a29cf9aebe1ec419bd3a Mon Sep 17 00:00:00 2001 From: LaurentBouquet Date: Wed, 28 Jul 2021 23:42:29 +0200 Subject: [PATCH] [Core] Assign quiz, question and category to teacher (author) #84 --- src/Form/UserType.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Form/UserType.php b/src/Form/UserType.php index a3b2827..4c99e7f 100644 --- a/src/Form/UserType.php +++ b/src/Form/UserType.php @@ -134,17 +134,17 @@ public function buildForm(FormBuilderInterface $builder, array $options) 'label' => $this->translator->trans('To receive result by email'), 'required' => false, ]); - if ($this->checker->isGranted('ROLE_SUPER_ADMIN')) { - $builder->add( - 'plainPassword', - RepeatedType::class, - [ - 'type' => PasswordType::class, - 'first_options' => array('label' => $this->translator->trans('Password')), - 'second_options' => array('label' => $this->translator->trans('Repeat Password')) - ] - ); - } + // if ($this->checker->isGranted('ROLE_SUPER_ADMIN')) { + // $builder->add( + // 'plainPassword', + // RepeatedType::class, + // [ + // 'type' => PasswordType::class, + // 'first_options' => array('label' => $this->translator->trans('Password')), + // 'second_options' => array('label' => $this->translator->trans('Repeat Password')) + // ] + // ); + // } break; case 'profile': $builder->add('toReceiveMyResultByEmail', CheckboxType::class, [