Obfuscate external participants emails in system notes
When managing external participants in an issue we add system notes to display which email was added or removed. On public issues or for guest users this information should not be visible. Adds obfuscation to issue email participant system notes, so no email addresses are disclosed if the user does not have the needed role. Changelog: added
显示
- app/graphql/types/notes/note_type.rb 15 个添加, 9 个删除app/graphql/types/notes/note_type.rb
- app/models/service_desk_setting.rb 1 个添加, 1 个删除app/models/service_desk_setting.rb
- app/models/system_note_metadata.rb 1 个添加, 0 个删除app/models/system_note_metadata.rb
- app/presenters/note_presenter.rb 29 个添加, 0 个删除app/presenters/note_presenter.rb
- app/serializers/note_entity.rb 11 个添加, 3 个删除app/serializers/note_entity.rb
- app/services/system_notes/issuables_service.rb 1 个添加, 1 个删除app/services/system_notes/issuables_service.rb
- doc/api/graphql/reference/index.md 11 个添加, 11 个删除doc/api/graphql/reference/index.md
- lib/api/entities/note.rb 5 个添加, 1 个删除lib/api/entities/note.rb
- lib/api/notes.rb 1 个添加, 1 个删除lib/api/notes.rb
- lib/gitlab/email/service_desk/custom_email.rb 1 个添加, 2 个删除lib/gitlab/email/service_desk/custom_email.rb
- lib/gitlab/utils/email.rb 16 个添加, 0 个删除lib/gitlab/utils/email.rb
- spec/graphql/types/notes/note_type_spec.rb 32 个添加, 0 个删除spec/graphql/types/notes/note_type_spec.rb
- spec/lib/gitlab/utils/email_spec.rb 16 个添加, 0 个删除spec/lib/gitlab/utils/email_spec.rb
- spec/presenters/note_presenter_spec.rb 39 个添加, 0 个删除spec/presenters/note_presenter_spec.rb
- spec/requests/api/graphql/notes/note_spec.rb 40 个添加, 1 个删除spec/requests/api/graphql/notes/note_spec.rb
- spec/requests/api/notes_spec.rb 31 个添加, 0 个删除spec/requests/api/notes_spec.rb
- spec/serializers/note_entity_spec.rb 33 个添加, 7 个删除spec/serializers/note_entity_spec.rb
- spec/services/issue_email_participants/create_service_spec.rb 1 个添加, 0 个删除.../services/issue_email_participants/create_service_spec.rb
- spec/support/shared_examples/graphql/notes_content_obfuscation_shared_examples.rb 39 个添加, 0 个删除...ples/graphql/notes_content_obfuscation_shared_examples.rb
加载中
想要评论请 注册 或 登录