-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(permission): forward action approval exception for return expected response #685
Conversation
Code Climate has analyzed commit 4e8db83 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 95.4% (55% is the threshold). This pull request will bring the total coverage in the repository to 50.5%. View more on Code Climate. |
@@ -35,13 +37,16 @@ def is_smart_action_authorized?(user, collection, parameters, endpoint, http_met | |||
|
|||
user_data = get_user_data(user['id']) | |||
collections_data = get_collections_permissions_data | |||
collection_name = ForestLiana.name_for(collection) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥇
rescue | ||
raise ForestLiana::Errors::ExpectedError.new(409, :conflict, "The collection #{collection} doesn't exist", 'collection not found') | ||
raise ForestLiana::Ability::Exceptions::UnknownCollection.new(collection_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -66,7 +71,7 @@ def is_chart_authorized?(user, parameters) | |||
|
|||
private | |||
|
|||
def get_user_data(user_id) | |||
def get_user_data(user_id, force_fetch = true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🏌️ ⛳
## [9.3.13](v9.3.12...v9.3.13) (2024-07-19) ### Bug Fixes * **permission:** forward action approval exception for return expected response ([#685](#685)) ([1e6333c](1e6333c))
🎉 This PR is included in version 9.3.13 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Definition of Done
General
Security