"New requirement" button is displayed for unauthenticated users
Steps to reproduce:
- enable
requirements_management
feature flag - got to a public project which has
ultimate
license as an unauthenticated user - if there are no requirements yet, you can see text "Requirements allow you to create criteria to check your products against." and
New requirement
button.
Expected behavior is not showing New requirement
button if user is not allowed to create requirements.
Related to https://gitlab.com/gitlab-org/release/tasks/-/issues/1300#note_327021024
Related to !29715 (merged)