Mercurial > hg > soundsoftware-site
comparison app/controllers/projects_controller.rb @ 508:851510f1b535 cannam
Merge from branch "redmine-1.2"
author | Chris Cannam |
---|---|
date | Thu, 14 Jul 2011 10:37:36 +0100 |
parents | 350acce374a2 0c939c159af4 |
children | b2a9e64b8283 |
comparison
equal
deleted
inserted
replaced
506:1551c61843d2 | 508:851510f1b535 |
---|---|
22 | 22 |
23 before_filter :find_project, :except => [ :index, :list, :new, :create, :copy ] | 23 before_filter :find_project, :except => [ :index, :list, :new, :create, :copy ] |
24 before_filter :authorize, :except => [ :index, :list, :new, :create, :copy, :archive, :unarchive, :destroy] | 24 before_filter :authorize, :except => [ :index, :list, :new, :create, :copy, :archive, :unarchive, :destroy] |
25 before_filter :authorize_global, :only => [:new, :create] | 25 before_filter :authorize_global, :only => [:new, :create] |
26 before_filter :require_admin, :only => [ :copy, :archive, :unarchive, :destroy ] | 26 before_filter :require_admin, :only => [ :copy, :archive, :unarchive, :destroy ] |
27 accept_key_auth :index, :show, :create, :update, :destroy | 27 accept_rss_auth :index |
28 accept_api_auth :index, :show, :create, :update, :destroy | |
28 | 29 |
29 after_filter :only => [:create, :edit, :update, :archive, :unarchive, :destroy] do |controller| | 30 after_filter :only => [:create, :edit, :update, :archive, :unarchive, :destroy] do |controller| |
30 if controller.request.post? | 31 if controller.request.post? |
31 controller.send :expire_action, :controller => 'welcome', :action => 'robots.txt' | 32 controller.send :expire_action, :controller => 'welcome', :action => 'robots.txt' |
32 end | 33 end |