mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
render_403 and 404 now return true
To prevent any: render_403 and return type of bugs
This commit is contained in:
parent
77f75fdeb6
commit
78cf4f396e
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ class ApplicationController < ActionController::Base
|
|||
render json: {}, status: :forbidden
|
||||
}
|
||||
end
|
||||
return
|
||||
return true
|
||||
end
|
||||
|
||||
def render_404
|
||||
|
@ -57,7 +57,7 @@ class ApplicationController < ActionController::Base
|
|||
render json: {}, status: :not_found
|
||||
}
|
||||
end
|
||||
return
|
||||
return true
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue