Skip to content

[BUG] public templates modal should only list importable templates #307

Description

@mohammadsherif0

Describe the Bug:

Public Templates lists all public templates and allows opening any of them read-only. Non-admins should only see templates they are allowed to copy (document types), not email templates they cannot import.

Reproducibilty:

  • Yes
  • No
  • Sometimes

Steps to Reproduce the Behavior:

  1. Log in as non-admin user.
  2. Templates → Public Templates.
  3. Observe email templates listed; use View on a template you cannot copy.

Expected Behavior:

Only show templates the user can import. No read-only access to templates they cannot own/copy.

Actual Behavior:

All public templates shown. View opens /template/:id even when copy is denied server-side.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions