Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/alert_management/metric_images/upload_service.rb')
-rw-r--r--app/services/alert_management/metric_images/upload_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/alert_management/metric_images/upload_service.rb b/app/services/alert_management/metric_images/upload_service.rb
index e9db10594df..46e7e3dbedd 100644
--- a/app/services/alert_management/metric_images/upload_service.rb
+++ b/app/services/alert_management/metric_images/upload_service.rb
@@ -39,7 +39,7 @@ module AlertManagement
private
def can_upload_metrics?
- alert.metric_images_available? && current_user&.can?(:upload_alert_management_metric_image, alert)
+ current_user&.can?(:upload_alert_management_metric_image, alert)
end
end
end