mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-10 10:24:31 +02:00
Allow users (and admins) to decide whether their email should be shown on their public profile
This commit is contained in:
parent
71b0c2d83e
commit
5b5e8a4fd5
8 changed files with 104 additions and 3 deletions
|
@ -117,7 +117,11 @@ class UserAdminForm extends AbstractType
|
|||
'required' => false,
|
||||
'disabled' => !$this->security->isGranted('edit_infos', $entity),
|
||||
])
|
||||
|
||||
->add('showEmailOnProfile', CheckboxType::class, [
|
||||
'required' => false,
|
||||
'label' => 'user.show_email_on_profile.label',
|
||||
'disabled' => !$this->security->isGranted('edit_infos', $entity),
|
||||
])
|
||||
->add('department', TextType::class, [
|
||||
'empty_data' => '',
|
||||
'label' => 'user.department.label',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue