feat: implement ownership transfer, IP filterin#448
Merged
mftee merged 2 commits intoCodeGirlsInc:mainfrom Apr 26, 2026
Merged
Conversation
Contributor
|
@Big-cedar is attempting to deploy a commit to the Mftee's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@Cedarich Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
mftee
approved these changes
Apr 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement Backend Features: BE-27, BE-28, BE-29, BE-30
📋 Summary
This PR implements four backend features as specified in issues BE-27 through BE-30, all located within the
backend/cmmty/directory following the contribution guidelines.✨ Features Implemented
🔐 BE-30: Document Ownership Transfer
Location:
backend/cmmty/ownership-transfer/POST /cmmty/documents/:id/transfer- Transfer ownership to another userGET /cmmty/documents/:id/transfer-history- View complete transfer history🛡️ BE-29: IP Allowlist and Blocklist Middleware
Location:
backend/cmmty/ip-filter/POST /cmmty/admin/ip-rules- Create IP filtering ruleDELETE /cmmty/admin/ip-rules/:id- Remove IP filtering ruleGET /cmmty/admin/ip-rules- List all IP rules💧 BE-28: Document Watermarking on Download
Location:
backend/cmmty/watermark/GET /cmmty/documents/:id/download- Download watermarked document{requester name} | {timestamp} | {document ID}pdf-lib@^1.17.1dependency🌍 BE-27: Localized Email Template Support
Location:
backend/cmmty/i18n-mail/preferredLanguagefieldpreferredLanguagecolumn to User entity (default: 'en')🔑 Additional Components
Rolesdecorator for RBAC (backend/src/auth/guards/roles.decorator.ts)RolesGuardfor role-based authorization (backend/src/auth/guards/roles.guard.ts)📁 Files Changed
New Files (24 files)
closes #356
closes #355
closes #354
closes #353