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:
@@ -8,6 +8,7 @@ import * as request from "supertest";
|
||||
import { unlink } from "node:fs/promises";
|
||||
import { Types } from "mongoose";
|
||||
import { GlobalGuard } from "src/auth/guards/global.guard";
|
||||
import { ActorAuthService } from "src/auth/auth-services/actor.auth.service";
|
||||
import { RolesGuard } from "src/auth/guards/role.guard";
|
||||
import { PersianErrorFilter } from "src/common/errors/persian-error.filter";
|
||||
import { MediaPolicyService } from "src/media-policy/media-policy.service";
|
||||
@@ -174,6 +175,12 @@ describe("v1/v6 branch routing through HTTP", () => {
|
||||
],
|
||||
providers: [
|
||||
GlobalGuard,
|
||||
{
|
||||
provide: ActorAuthService,
|
||||
useValue: Object.assign(Object.create(ActorAuthService.prototype), {
|
||||
fieldExpertDbService: { findOne: async () => ({ isActive: true }) },
|
||||
}),
|
||||
},
|
||||
RolesGuard,
|
||||
{ provide: RequestManagementService, useValue: userService },
|
||||
{ provide: ClaimRequestManagementService, useValue: claimService },
|
||||
|
||||
@@ -2081,6 +2081,15 @@
|
||||
],
|
||||
"roles": []
|
||||
},
|
||||
{
|
||||
"controller": "SuperAdminManagementController",
|
||||
"method": "PATCH",
|
||||
"path": "/super-admin/management/staff/:role/:id/status",
|
||||
"guards": [
|
||||
"SuperAdminGuard"
|
||||
],
|
||||
"roles": []
|
||||
},
|
||||
{
|
||||
"controller": "SuperAdminController",
|
||||
"method": "PATCH",
|
||||
|
||||
Reference in New Issue
Block a user