|
|
|
@ -22,11 +22,11 @@ class ProjectsController < ApplicationController
|
|
|
|
|
# menu_item :settings, :only => :settings
|
|
|
|
|
|
|
|
|
|
before_filter :find_project, :except => [ :index, :list, :new, :create, :copy ]
|
|
|
|
|
before_filter :authorize, :except => [ :index, :list, :new, :create, :copy, :archive, :unarchive, :destroy, :member, :focus, :file]
|
|
|
|
|
before_filter :authorize, :except => [ :index, :list, :new, :create, :copy, :archive, :unarchive, :destroy, :member, :focus, :file, :statistics]
|
|
|
|
|
before_filter :authorize_global, :only => [:new, :create]
|
|
|
|
|
before_filter :require_admin, :only => [ :copy, :archive, :unarchive, :destroy ]
|
|
|
|
|
#by young
|
|
|
|
|
before_filter :member, :file
|
|
|
|
|
before_filter :member, :file, :statistics
|
|
|
|
|
#
|
|
|
|
|
accept_rss_auth :index
|
|
|
|
|
accept_api_auth :index, :show, :create, :update, :destroy
|
|
|
|
@ -276,6 +276,10 @@ class ProjectsController < ApplicationController
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def file
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def statistics
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
#end
|
|
|
|
|
|
|
|
|
|