Skip to content

Prevent forwarding a file to its original owner #73

@girishjadhav-cosmica

Description

@girishjadhav-cosmica

Description:
The system currently allows users to forward a file back to its original owner. This behavior is unnecessary and can lead to confusion or redundant file duplication. The application should restrict forwarding a file to the user who originally uploaded or sent it.

Steps to Reproduce:

  1. User A uploads or sends a file.
  2. User B receives the file.
  3. User B attempts to forward the file back to User A.
  4. Observe that the system allows the action.

Expected Behavior:
The system should block forwarding a file to its original owner and display a clear message indicating that the action is not allowed.

Actual Behavior:
The system allows forwarding the file to its original owner without any restriction.

Suggested Behavior / Fix:

  • Add a validation check to detect if the recipient is the original file owner.
  • If true, prevent the action and show a user-friendly message such as:
    "This file cannot be forwarded to its original owner."

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions