From 4f8faba84e350a1312b431ee1146eee7fff111b8 Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Tue, 16 Apr 2019 14:21:47 +0200 Subject: [PATCH] Exports left after export fix --- app/controllers/teams_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/teams_controller.rb b/app/controllers/teams_controller.rb index 7464b8f49..425053d4e 100644 --- a/app/controllers/teams_controller.rb +++ b/app/controllers/teams_controller.rb @@ -257,7 +257,7 @@ class TeamsController < ApplicationController partial: 'projects/export/modal.html.erb', locals: { num_projects: @exp_projects.size, limit: TeamZipExport.exports_limit, - num_of_requests_left: current_user.exports_left } + num_of_requests_left: current_user.exports_left - 1 } ), title: t('projects.export_projects.modal_title') }