mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
adjust errors controller
This commit is contained in:
1 parent
b1510bb88c
commit
c545924fe9
1 file changed
+1
-1
@@ -12,7 +12,7 @@ class ErrorsController < ActionController::Base
|
||||
].freeze
|
||||
|
||||
def show
|
||||
if request.original_fullpath.in?(ENTERPRISE_PATHS)
|
||||
if request.original_fullpath.in?(ENTERPRISE_PATHS) && error_status_code == 404
|
||||
return render json: { status: 404, message: ENTERPRISE_FEATURE_MESSAGE }, status: :not_found
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user