Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sascha-karnatz committed Dec 12, 2023
1 parent 6231715 commit a2d0c8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
10 changes: 4 additions & 6 deletions app/controllers/alchemy/base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,11 @@ def permission_denied(exception = nil)
WARN
end
if request.format.json?
render json: {message: Alchemy.t("You are not authorized") }, status: :unauthorized
render json: {message: Alchemy.t("You are not authorized")}, status: :unauthorized
elsif current_alchemy_user
handle_redirect_for_user
else
if current_alchemy_user
handle_redirect_for_user
else
handle_redirect_for_guest
end
handle_redirect_for_guest
end
end

Expand Down
1 change: 0 additions & 1 deletion app/javascript/alchemy_admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ setDefaultAnimation("tooltip.hide", {
}
})


// Global Alchemy object
if (typeof window.Alchemy === "undefined") {
window.Alchemy = {}
Expand Down

0 comments on commit a2d0c8c

Please sign in to comment.