commit
c633a0b6bd
@ -37,7 +37,7 @@ class DmsfFolderPermissionsController < ApplicationController
|
||||
|
||||
def append
|
||||
@principals = Principal.where(:id => params[:user_ids]).to_a
|
||||
render :nothing => true if @principals.blank?
|
||||
head 200 if @principals.blank?
|
||||
end
|
||||
|
||||
def autocomplete_for_user
|
||||
|
||||
@ -78,7 +78,7 @@ class DmsfUploadController < ApplicationController
|
||||
# REST API and Redmine attachment form
|
||||
def upload
|
||||
unless request.content_type == 'application/octet-stream'
|
||||
render :nothing => true, :status => 406
|
||||
head 406
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user