Skip to content

Commit 6076a32

Browse files
fix(permission): send api response for 409 error (#678)
1 parent c828cf8 commit 6076a32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/controllers/forest_liana/application_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class ApplicationController < ForestLiana::BaseController
66
rescue_from ForestLiana::Ability::Exceptions::AccessDenied, with: :render_error
77
rescue_from ForestLiana::Errors::HTTP403Error, with: :render_error
88
rescue_from ForestLiana::Errors::HTTP422Error, with: :render_error
9+
rescue_from ForestLiana::Errors::ExpectedError, with: :render_error
910

1011
def self.papertrail?
1112
Object.const_get('PaperTrail::Version').is_a?(Class) rescue false

0 commit comments

Comments
 (0)