|
|
|
@ -17,7 +17,7 @@ class ProjectsController < ApplicationController |
|
|
|
|
menu_item :settings, :only => :settings |
|
|
|
|
|
|
|
|
|
before_filter :find_project, :except => [ :index, :new, :create, :copy ] |
|
|
|
|
before_filter :authorize, :except => [ :index, :new, :create, :copy, :archive, :unarchive, :destroy] |
|
|
|
|
before_filter :authorize, :only => [ :show, :settings, :edit, :update, :modules ] |
|
|
|
|
before_filter :authorize_global, :only => [:new, :create] |
|
|
|
|
before_filter :require_admin, :only => [ :copy, :archive, :unarchive, :destroy ] |
|
|
|
|
accept_key_auth :index, :show, :create, :update, :destroy |
|
|
|
|