[PR #742] [MERGED] fix: 针对角色配置不同的绑定地址数量上限 #733

Closed
opened 2026-02-26 21:32:44 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/742
Author: @dreamhunter2333
Created: 10/12/2025
Status: Merged
Merged: 10/12/2025
Merged by: @dreamhunter2333

Base: mainHead: feature/email


📝 Commits (1)

  • 1049fcf fix: 针对角色配置不同的绑定地址数量上限

📊 Changes

2 files changed (+5 additions, -0 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 worker/src/worker.ts (+3 -0)

📄 Description

PR Type

Enhancement, Documentation


Description

  • Added role-based configuration for address binding limits.

  • Updated middleware to check user role payload for specific API paths.

  • Documented new feature in the changelog.


Changes walkthrough 📝

Relevant files
Enhancement
worker.ts
Update middleware to handle role-based address binding limits

worker/src/worker.ts

  • Added a check for user role payload in specific API paths.
  • Modified middleware logic for /user_api/bind_address endpoint.
  • +3/-0     
    Documentation
    CHANGELOG.md
    Update changelog with new feature details                               

    CHANGELOG.md

  • Documented new feature for role-based address binding limits.
  • Added a changelog entry for admin page updates.
  • +2/-0     

    Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more information.

  • 🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

    ## 📋 Pull Request Information **Original PR:** https://github.com/dreamhunter2333/cloudflare_temp_email/pull/742 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 10/12/2025 **Status:** ✅ Merged **Merged:** 10/12/2025 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/email` --- ### 📝 Commits (1) - [`1049fcf`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/1049fcf9b75286f534c6a1a2106c367adfa89cb0) fix: 针对角色配置不同的绑定地址数量上限 ### 📊 Changes **2 files changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `worker/src/worker.ts` (+3 -0) </details> ### 📄 Description ### **PR Type** Enhancement, Documentation ___ ### **Description** - Added role-based configuration for address binding limits. - Updated middleware to check user role payload for specific API paths. - Documented new feature in the changelog. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>worker.ts</strong><dd><code>Update middleware to handle role-based address binding limits</code></dd></summary> <hr> worker/src/worker.ts <li>Added a check for user role payload in specific API paths.<br> <li> Modified middleware logic for <code>/user_api/bind_address</code> endpoint. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/742/files#diff-c007030a206d7e4e2a4879ba673551e7633ad914b67cfac204096edced3f80a2">+3/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr><tr><td><strong>Documentation</strong></td><td><table> <tr> <td> <details> <summary><strong>CHANGELOG.md</strong><dd><code>Update changelog with new feature details</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> CHANGELOG.md <li>Documented new feature for role-based address binding limits.<br> <li> Added a changelog entry for admin page updates. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/742/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed">+2/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> ___ > <details> <summary> Need help?</summary><li>Type <code>/help how to ...</code> in the comments thread for any questions about PR-Agent usage.</li><li>Check out the <a href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a> for more information.</li></details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
    kerem 2026-02-26 21:32:44 +03:00
    Sign in to join this conversation.
    No milestone
    No project
    No assignees
    1 participant
    Notifications
    Due date
    The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

    No due date set.

    Dependencies

    No dependencies set.

    Reference
    starred/cloudflare_temp_email#733
    No description provided.