Skip to content

Commit cf84d42

Browse files
committed
refactor(api): update verify-link-email route to use roles list
1 parent 6a85fee commit cf84d42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/api/v1/auth/verify-link-email.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Future<Response> onRequest(RequestContext context) async {
2323
'Authentication required to verify email link.',
2424
);
2525
}
26-
if (authenticatedUser.role != UserRole.guestUser) {
26+
if (!authenticatedUser.roles.contains(UserRoles.guestUser)) {
2727
throw const BadRequestException(
2828
'Account is already permanent. Cannot complete email linking.',
2929
);

0 commit comments

Comments
 (0)