X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d8f04c6a53487419fd256e31ec4da3b0a3056b12..d82509cf925a2afa5b09f8a67952d5553101778d:/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 cc0d3c8192..924bf44bae 100644 --- a/apps/workbench/app/controllers/user_agreements_controller.rb +++ b/apps/workbench/app/controllers/user_agreements_controller.rb @@ -1,6 +1,7 @@ class UserAgreementsController < ApplicationController skip_before_filter :check_user_agreements skip_before_filter :find_object_by_uuid + skip_before_filter :check_user_profile def model_class Collection @@ -8,7 +9,7 @@ class UserAgreementsController < ApplicationController def sign params[:checked].each do |checked| - if r = checked.match(/^([0-9a-f]+)/) + if r = checked.match(/^([0-9a-f]+[^\/]*)/) UserAgreement.sign uuid: r[1] end end