Merge branch 'devel-2.4.2' of github.com:danmunn/redmine_dmsf into devel-2.4.2
This commit is contained in:
commit
1d28539e2f
@ -30,6 +30,9 @@ class DmsfController < ApplicationController
|
|||||||
before_action :find_parent, :only => [:new, :create]
|
before_action :find_parent, :only => [:new, :create]
|
||||||
before_action :tree_view, :only => [:delete, :show]
|
before_action :tree_view, :only => [:delete, :show]
|
||||||
before_action :permissions
|
before_action :permissions
|
||||||
|
|
||||||
|
# also try to lookup folder by title if this is API call
|
||||||
|
before_action :find_folder_by_title, :only => [:show], :if => :api_request?
|
||||||
|
|
||||||
accept_api_auth :show, :create, :save, :delete
|
accept_api_auth :show, :create, :save, :delete
|
||||||
|
|
||||||
@ -52,8 +55,6 @@ class DmsfController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
# also try to lookup folder by title if this is API call
|
|
||||||
find_folder_by_title if [:xml, :json].include? request.format.to_sym
|
|
||||||
get_display_params
|
get_display_params
|
||||||
if (@folder && @folder.deleted?) || (params[:folder_title].present? && !@folder)
|
if (@folder && @folder.deleted?) || (params[:folder_title].present? && !@folder)
|
||||||
render_404
|
render_404
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user