Skip to content

fix(cp): enforce ccTLD-only direct registrar changes - #268

Open
terbora-core wants to merge 1 commit into
mainfrom
fix/enforce-cctld-direct-registrar-change
Open

terbora-core wants to merge 1 commit into
mainfrom
fix/enforce-cctld-direct-registrar-change

Conversation

@terbora-core

Copy link
Copy Markdown
Contributor

Summary

  • Enforce the existing control-panel ccTLD restriction in changeDomainRegistrar() as well, so an admin cannot bypass the UI with a POST for a gTLD.
  • Keep the existing role-0 requirement, validation, feedback, and registrar reassignment unchanged.

Verification

  • Tested the suffix condition using PHP: example.ye, example.bg, and example.co.uk accepted; example.com, example.test, and names with no dot rejected.
  • No database, routes, or Twig changes.

This matches the current UI rule: last TLD label has exactly two characters.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T16:38:17.752929Z 448fac1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant