mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-07 05:34:55 +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
|
render json: {}, status: :forbidden
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
return
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
def render_404
|
def render_404
|
||||||
|
@ -57,7 +57,7 @@ class ApplicationController < ActionController::Base
|
||||||
render json: {}, status: :not_found
|
render json: {}, status: :not_found
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
return
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Add table
Reference in a new issue