We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3523c34 commit 6a85feeCopy full SHA for 6a85fee
routes/api/v1/auth/link-email.dart
@@ -22,7 +22,7 @@ Future<Response> onRequest(RequestContext context) async {
22
// This should ideally be caught by `authenticationProvider` if route is protected
23
throw const UnauthorizedException('Authentication required to link email.');
24
}
25
- if (authenticatedUser.role != UserRole.guestUser) {
+ if (!authenticatedUser.roles.contains(UserRoles.guestUser)) {
26
throw const BadRequestException(
27
'Account is already permanent. Cannot initiate email linking.',
28
);
0 commit comments