Closed ItamarYuran closed 1 week ago
The current code returns:
Thank you for your reviews! These changes will return all denied permissions, only the ones that regard the request (not all permission in the policy) Same goes for missing permissions, all missing one will return. In case of denied + missing permissions only denied ones return.
Closes #(8224)
Change Description
The added code helps the user understand why they are not authorized to perform a certain action.
Background
Up until now in case a user had no permissions or was denied of some action, they would only get a
401 unauthorized
message, making it hard to understand what is missing in order to perform that action.The enhancement will report all denied actions in case there are any, or if there aren't any - report missing permissions.
Testing Details
Changes were not tested yet, no existing test got broken
Additional info