20690: Remove workbench1 and testing/packaging references.
[arvados.git] / 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
deleted file mode 100644 (file)
index 5e530a6..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright (C) The Arvados Authors. All rights reserved.
-#
-# SPDX-License-Identifier: AGPL-3.0
-
-class UserAgreementsController < ApplicationController
-  skip_before_action :check_user_agreements
-  skip_before_action :find_object_by_uuid
-  skip_before_action :check_user_profile
-
-  def index
-    if unsigned_user_agreements.empty?
-      if params[:return_to]
-        redirect_to(params[:return_to])
-      else
-        redirect_back(fallback_location: root_path)
-      end
-    end
-  end
-
-  def model_class
-    Collection
-  end
-
-  def sign
-    params[:checked].each do |checked|
-      if (r = CollectionsHelper.match_uuid_with_optional_filepath(checked))
-        UserAgreement.sign uuid: r[1]
-      end
-    end
-    current_user.activate
-    if params[:return_to]
-      redirect_to(params[:return_to])
-    else
-      redirect_back(fallback_location: root_path)
-    end
-  end
-end