Skip to content

Commit

Permalink
[Core] Assign quiz, question and category to teacher (author) #84
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentBouquet committed Jul 28, 2021
1 parent aacf971 commit be2303c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/Form/UserType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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, [
Expand Down

0 comments on commit be2303c

Please sign in to comment.