[CS for Registry] Add license check to cs for registry

Description

GitLab Container Registry: Continuous Vulnerabi... (&2340 - closed) is an GitLab Ultimate feature. The Vulnerability page and CVS are exclusively available to "GitLab Ultimate" customers, although free users can still toggle features and automate pipelines on container image pushes.

Make sure that only Ultimate customers will have access to this feature.

User Impact

Free users who have enabled this feature cannot use it or toggle the button from the security configuration page.

Implementation plan

  1. Add license check to event dispatch class ee/app/workers/app_sec/container_scanning/scan_image_worker.rb
  2. Add license check to project policy ee/app/policies/ee/project_policy.rb
Edited by Aditya Tiwari