From b75be91784305075e3c2bc00312dcb67377fef56 Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Tue, 9 Aug 2011 23:14:46 +0200 Subject: [PATCH] SONAR-2621 Profile changelog should be accessible by anonymous users --- .../webapp/WEB-INF/app/controllers/profiles_controller.rb | 2 +- .../main/webapp/WEB-INF/app/views/profiles/_tabs.html.erb | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb index 1a4c8f280cd..2e27aeb9c4b 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb @@ -24,7 +24,7 @@ class ProfilesController < ApplicationController verify :method => :post, :only => ['create', 'delete', 'copy', 'set_as_default', 'restore', 'set_projects', 'rename', 'change_parent'], :redirect_to => { :action => 'index' } # the backup action is allow to non-admin users : see http://jira.codehaus.org/browse/SONAR-2039 - before_filter :admin_required, :except => [ 'index', 'show', 'permalinks', 'export', 'backup', 'inheritance' ] + before_filter :admin_required, :only => ['create', 'delete', 'set_as_default', 'copy', 'restore', 'change_parent', 'set_projects', 'rename'] # # diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/_tabs.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/_tabs.html.erb index a614e8c32a9..0ea41f79e16 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/_tabs.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/_tabs.html.erb @@ -1,7 +1,6 @@ <% new_tab = nil unless defined?(:new_tab) selected_tab = nil unless defined?(:selected_tab) - is_admin=has_role?(:admin) %>