From 30fb0b660c9947a89ae2bc15595292633cc6e980 Mon Sep 17 00:00:00 2001 From: albert Date: Tue, 20 Dec 2011 11:57:33 -0500 Subject: [PATCH] added promote link to user page --- app/controllers/admin/users_controller.rb | 1 + app/views/static/site_map.html.erb | 3 --- app/views/users/_secondary_links.html.erb | 3 +++ 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb index 9427bfab1..1df8b13a5 100644 --- a/app/controllers/admin/users_controller.rb +++ b/app/controllers/admin/users_controller.rb @@ -9,6 +9,7 @@ module Admin def update @user = User.find(params[:id]) @user.level = params[:user][:level] + @user.inviter_id = CurrentUser.id unless @user.inviter_id.present? @user.save redirect_to edit_admin_user_path(@user, :notice => "User updated"), :notice => "User updated" end diff --git a/app/views/static/site_map.html.erb b/app/views/static/site_map.html.erb index 702dc6434..d7d35f355 100644 --- a/app/views/static/site_map.html.erb +++ b/app/views/static/site_map.html.erb @@ -14,9 +14,6 @@
  • <%= link_to("Bookmarklet", bookmarklet_path) %>
  • <%= link_to("API Documentation", wiki_pages_path(:title => "help:api")) %>
  • -