Defect #5317 » issue5317_svn_3774.diff
app/controllers/projects_controller.rb (working copy) | ||
---|---|---|
27 | 27 |
before_filter :authorize, :except => [ :index, :list, :add, :copy, :archive, :unarchive, :destroy, :activity ] |
28 | 28 |
before_filter :authorize_global, :only => :add |
29 | 29 |
before_filter :require_admin, :only => [ :copy, :archive, :unarchive, :destroy ] |
30 |
accept_key_auth :activity |
|
30 |
accept_key_auth :activity, :index
|
|
31 | 31 |
|
32 | 32 |
after_filter :only => [:add, :edit, :archive, :unarchive, :destroy] do |controller| |
33 | 33 |
if controller.request.post? |
app/views/projects/index.rhtml (working copy) | ||
---|---|---|
1 |
<% content_for :header_tags do %> |
|
2 |
<%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %> |
|
3 |
<% end %> |
|
4 | ||
1 | 5 |
<div class="contextual"> |
2 | 6 |
<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'icon icon-add') + ' |' if User.current.allowed_to?(:add_project, nil, :global => true) %> |
3 | 7 |
<%= link_to(l(:label_issue_view_all), { :controller => 'issues' }) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %> |