[MGNLEE-37] EnterpriseFlowDefinitionManager.getDefinitionNames() should only return allowed workflows Created: 30/Jan/07  Updated: 10/Mar/17  Resolved: 26/Nov/13

Status: Closed
Project: Magnolia DX Core
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Outdated Votes: 0
Labels: None
Remaining Estimate: 5m
Time Spent: Not Specified
Original Estimate: 5m

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

It currently uses ContentRepository.getHierarchyManager() and thus returns the complete list of workflows, instead of using MgnlContext and thus only return those allowed to the user.
While we're at it, we should also expose the "description" of the workflows, not just their names. (-> report this in another jira issue)


Generated at Mon Feb 12 05:26:07 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.