Remove un accessible links from embded dashboards context menu
What does this MR do?
Fixes #207184 (closed) by removing logs_path
from EnvironmentsHelper#metrics_data
for users which does not have rights to view them.
Screenshot
user has access to logs section:
user does not have access to logs section:
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry -
Documentation (if required) I have checked in https://docs.gitlab.com/ee/user/project/integrations/prometheus.html#embedding-metric-charts-within-gitlab-flavored-markdown and https://docs.gitlab.com/ee/user/project/clusters/kubernetes_pod_logs.html
-
Code review guidelines but I haven't found any mentions about affected link, so I assume there is no need to update anything. -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Edited by 🤖 GitLab Bot 🤖