[ARVADOS] updated: e40fdedbc285a0fa6af16e41b5b4f72e46e9987d

git at public.curoverse.com git at public.curoverse.com
Thu Mar 27 11:27:12 EDT 2014


Summary of changes:
 .../workbench/app/views/users/_show_admin.html.erb |    2 +-
 apps/workbench/config/routes.rb                    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

       via  e40fdedbc285a0fa6af16e41b5b4f72e46e9987d (commit)
      from  8d003a7abe0b4d633c6c125dabbf011394fde2e7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit e40fdedbc285a0fa6af16e41b5b4f72e46e9987d
Author: radhika chippada <radhika at radhika.curoverse>
Date:   Thu Mar 27 11:23:16 2014 -0400

    Use post method instead of get method when invoking the unsetup method from the api server.

diff --git a/apps/workbench/app/views/users/_show_admin.html.erb b/apps/workbench/app/views/users/_show_admin.html.erb
index aa8b07c..c43ce02 100644
--- a/apps/workbench/app/views/users/_show_admin.html.erb
+++ b/apps/workbench/app/views/users/_show_admin.html.erb
@@ -9,7 +9,7 @@ account.</p>
 <p>As an admin, you can deactivate this user.</p>
 
 <blockquote>
-<%=  link_to "Deactivate #{@object.full_name}", { action: 'unsetup', id: @object.uuid }, { confirm: "Are you sure you want to deactivate #{@object.full_name}?", method: 'get' } %>
+<%=  link_to "Deactivate #{@object.full_name}", { action: 'unsetup', id: @object.uuid }, { confirm: "Are you sure you want to deactivate #{@object.full_name}?", method: 'post' } %>
 </blockquote>
 
 
diff --git a/apps/workbench/config/routes.rb b/apps/workbench/config/routes.rb
index 5525662..6504df0 100644
--- a/apps/workbench/config/routes.rb
+++ b/apps/workbench/config/routes.rb
@@ -23,7 +23,7 @@ ArvadosWorkbench::Application.routes.draw do
     get 'welcome', :on => :collection
     get 'activity', :on => :collection
     post 'sudo', :on => :member
-    get 'unsetup', :on => :member
+    post 'unsetup', :on => :member
   end
   resources :logs
   resources :factory_jobs

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list