projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
3453: Add ensure_unique_name=True to collection create.
[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
index 924bf44baeee801735d905a431743bddd49e0ff8..f8c316e58c7606c086a6e91132f14c381e02f1e8 100644
(file)
--- 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