render_404
end
- # Check if project is unique before bulk operations
- def check_project_uniqueness
- unless @project
- # TODO: let users bulk edit/move/destroy issues from different projects
- render_error 'Can not bulk edit/move/destroy issues from different projects'
- return false
- end
- end
-
# make sure that the user is a member of the project (or admin) if project is private
# used as a before_filter for actions that do not require any particular permission on the project
def check_project_privacy
default_search_scope :issues
before_filter :find_issue, :only => [:show, :edit, :update]
- before_filter :find_issues, :only => [:bulk_edit, :bulk_update, :move, :perform_move, :destroy]
- before_filter :check_project_uniqueness, :only => [:move, :perform_move]
+ before_filter :find_issues, :only => [:bulk_edit, :bulk_update, :destroy]
before_filter :find_project, :only => [:new, :create]
before_filter :authorize, :except => [:index]
before_filter :find_optional_project, :only => [:index]