1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class UserAgreementsController < ApplicationController
6 skip_before_action :check_user_agreements
7 skip_before_action :find_object_by_uuid
8 skip_before_action :check_user_profile
11 if unsigned_user_agreements.empty?
13 redirect_to(params[:return_to])
15 redirect_back(fallback_location: root_path)
25 params[:checked].each do |checked|
26 if (r = CollectionsHelper.match_uuid_with_optional_filepath(checked))
27 UserAgreement.sign uuid: r[1]
32 redirect_to(params[:return_to])
34 redirect_back(fallback_location: root_path)