forked from Yara724/api
feat: manage expert access and merge Parsian expert seeds
Allow role-specific identities and admin account activation, support national-code-only claim experts, and remove required voice from v4/v5. Add a combined, resumable Parsian seed that preserves existing accounts and merges locations and product codes.
This commit is contained in:
@@ -55,9 +55,11 @@ export class LocalActorAuthGuard implements CanActivate {
|
||||
throw new UnauthorizedException("User role is not authorized");
|
||||
}
|
||||
|
||||
await this.actorAuthService.assertActorActive(payload);
|
||||
request.user = payload;
|
||||
request.identity = request.user;
|
||||
} catch {
|
||||
} catch (error) {
|
||||
if (error instanceof UnauthorizedException) throw error;
|
||||
throw new UnauthorizedException("Invalid token");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user