Skip to content

fix: filter category dropdown by identity to prevent leaking restricted category names (#158)#179

Open
JuliaKalder wants to merge 1 commit into
mainfrom
fix/issue-158
Open

fix: filter category dropdown by identity to prevent leaking restricted category names (#158)#179
JuliaKalder wants to merge 1 commit into
mainfrom
fix/issue-158

Conversation

@JuliaKalder
Copy link
Copy Markdown
Owner

Summary

populateCategoryFilter() in popup/popup.js called getCategories() which returned all template categories without identity filtering. Since renderTemplateList() already filters templates by the current email identity, the category dropdown was leaking the names of categories belonging exclusively to identity-restricted templates.

The fix filters templates by identity first, then derives the category list from the visible set only — matching the approach already used in renderTemplateList().

Changes

  • popup/popup.js: Replace getCategories() call with identity-filtered getTemplates() → extract categories from filtered templates

Testing

All 96 existing tests pass. No logic changes — only the source of the category list changed.

Fixes #158

…ed category names

populateCategoryFilter() now filters templates by the current identity before
deriving the category list, matching the behavior already applied in renderTemplateList().
Previously it called getCategories() which returned all categories regardless of identity.

Fixes #158
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.

[LOW] popup.js populateCategoryFilter leaks category names from identity-restricted templates

1 participant