Hide primary button and search filter on roadmap for unauthorized users

Summary

When viewing the roadmap page guest users see a full filter bar and 'New Epic' button when they're not authorized to create epics. This happens when epics exist that have no start or due date.

Example 1: When no epics exist Example 2: When an epic with no start/due date exists
image image

We should at least remove the 'New Epic' button. Ideally we'd make these two views consistent.

Original Description This probably has to do with ee/app/policies/ee/group_policy.rb and :create_epic permission.

Alternatively, the primary button could be disabled for unauthorized users.

Example Project

  1. https://gitlab.com/groups/gitlab-org/gitter/-/roadmap
  2. https://gitlab.com/groups/gitlab-org/security-products/-/roadmap
Example 1 Example 2
roadmap-1 roadmap-2
Edited Jan 08, 2021 by John Hope
Assignee Loading
Time tracking Loading