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
The @role_required backend decorator checks that the authenticated user has a particular role. However, our roles are designed to provide increasing levels of access, so a passport user can access everything a public user can plus additional functionality.
So, we should change the @role_required decorator to check that the user has at least the specified role.
The text was updated successfully, but these errors were encountered:
The
@role_required
backend decorator checks that the authenticated user has a particular role. However, our roles are designed to provide increasing levels of access, so a passport user can access everything a public user can plus additional functionality.So, we should change the
@role_required
decorator to check that the user has at least the specified role.The text was updated successfully, but these errors were encountered: