Hide "Delete.." buttons for model registry model list without permission

What does this MR do and why?

Hide "Delete.." buttons for model registry model list without permission

Previously "Delete model" and similar buttons were shown but were failing for anonymous users.

References

MR acceptance checklist

Before After
image image

How to set up and validate locally

  1. Go to any project and "Deploy", and "Model registry"
  2. Create some models and some model versions
  3. Now you can list and show those models and versions
  4. In incognito mode, anonymously, The "Delete button" should not appear
Edited by Alper Akgun

Merge request reports

Loading