Commit graph

8 commits

Author SHA1 Message Date
oleghasjanov
7799727867 feat: add age validation for admin contacts
- Add AgeValidation module for consistent age checks
- Validate admin contacts must be at least 18 years old
- Move age validation logic from Domain to shared module
- Add tests for admin contact age validation
- Fix JSON format for admin_contacts_allowed_ident_type setting

This change ensures that administrative contacts must be adults (18+),
using the same age validation logic as for registrants. The validation
works with both birthday and Estonian ID formats. Settings are now
properly stored as JSON strings for consistent parsing.
2025-03-20 16:37:38 +02:00
oleghasjanov
f2978599b4 feat: add admin contact ident type validation
- Add new setting for allowed admin contact ident types
- Add validation for admin contact ident types on domain create/update
- Add UI controls for managing allowed ident types
- Add tests for new validation rules
- Update domain model to respect new settings

The changes allow configuring which identification types (private person,
organization, birthday) are allowed for administrative contacts. This is
enforced when creating new domains or adding new admin contacts.
2025-02-03 13:59:03 +02:00
olegphenomenon
4d64ee21a1 refactoring 2021-09-22 11:21:49 +03:00
olegphenomenon
1bb5dddd58 added abbility for added extenstions prohibited status 2021-09-21 17:15:01 +03:00
Karl Erik Õunapuu
1e1f808c8d Use PaperTrail.request.whodunnit
PaperTrail.whodunnit was removed from PaperTrail 10.x
2020-05-29 14:59:17 +03:00
Alex Sherman
a1651ca1b9 Fix double versioning on Domain & Contact models 2020-02-12 18:51:48 +05:00
Alex Sherman
a18f7b1605 Pump papertrail version to 6.0.2 2020-02-05 12:43:25 +05:00
Maciej Szlosarczyk
0c7c8eb480
Move domain versioning tests from RSpec to minitest 2018-08-17 15:50:21 +03:00