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?
12 redirect_to(params[:return_to] || :back)
21 params[:checked].each do |checked|
22 if (r = CollectionsHelper.match_uuid_with_optional_filepath(checked))
23 UserAgreement.sign uuid: r[1]
27 redirect_to(params[:return_to] || :back)