Skip to content

Omit link to generate labels if user does not have access to create them

Stan Hu requested to merge stanhu/gitlab-ce:fix-no-labels-page into master

On a project that has no labels, a user was provided a link to create labels on the "Labels" tab, resulting in a 404. This MR changes the next to "No labels created" if the user lands on this page but does not have permission to add a label.

Screenshot:

image

Closes https://github.com/gitlabhq/gitlabhq/issues/8353

Merge request reports