You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use this package with rest framework. However, the "has_role_decorator" function raises an exception when the user does not have the role, as expected. Is it possible to catch this exception in my ViewSet in order to return a "Permission Denied" REST response?
The text was updated successfully, but these errors were encountered:
I am trying to use this package with rest framework. However, the "has_role_decorator" function raises an exception when the user does not have the role, as expected. Is it possible to catch this exception in my ViewSet in order to return a "Permission Denied" REST response?
The text was updated successfully, but these errors were encountered: