Replace use of injected canBulkEditEpics and canCreateProjects
What does this MR do and why?
This change moves two user permission checks (canCreateProjects
and canBulkEditEpics
) from HAML injection initialization to being dynamically fetched from the GraphQL query.
References
Screenshots or screen recordings
N.A.
How to set up and validate locally
- Create a Group and a project in it
- Do not add any issues
- Verify if the Group > Issues have
New project
button for user's with permissions - Go to Group > Epics
- Verify if the Bulk Edit option is available for the user
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #542148