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 6a85fee commit cf84d42Copy full SHA for cf84d42
routes/api/v1/auth/verify-link-email.dart
@@ -23,7 +23,7 @@ Future<Response> onRequest(RequestContext context) async {
23
'Authentication required to verify email link.',
24
);
25
}
26
- if (authenticatedUser.role != UserRole.guestUser) {
+ if (!authenticatedUser.roles.contains(UserRoles.guestUser)) {
27
throw const BadRequestException(
28
'Account is already permanent. Cannot complete email linking.',
29
0 commit comments