X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1a0a58c4f22af82e0a37440af3b0948771bca5e1..bb564d631cf4d6a165f4cca218919a1e1398437a:/apps/workbench/app/controllers/user_agreements_controller.rb diff --git a/apps/workbench/app/controllers/user_agreements_controller.rb b/apps/workbench/app/controllers/user_agreements_controller.rb index 924bf44bae..f8c316e58c 100644 --- a/apps/workbench/app/controllers/user_agreements_controller.rb +++ b/apps/workbench/app/controllers/user_agreements_controller.rb @@ -3,6 +3,12 @@ class UserAgreementsController < ApplicationController skip_before_filter :find_object_by_uuid skip_before_filter :check_user_profile + def index + if unsigned_user_agreements.empty? + redirect_to(params[:return_to] || :back) + end + end + def model_class Collection end