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 347b347 commit 221f5d1Copy full SHA for 221f5d1
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.roles.contains(UserRoles.guestUser)) {
+ if (authenticatedUser.appRole != AppUserRole.guestUser) {
26
throw const BadRequestException(
27
'Account is already permanent. Cannot initiate email linking.',
28
);
0 commit comments