forked from Yara724/api
group lookups added also fanavaran module grant access
This commit is contained in:
@@ -107,6 +107,16 @@ export const FANAVARAN_REMOTE_LOOKUPS: FanavaranRemoteLookupDefinition[] = [
|
||||
url: `${FANAVARAN_LOOKUP_BASE_URL}/common/base-info/Provinces`,
|
||||
cacheFile: "provinces.json",
|
||||
},
|
||||
{
|
||||
name: "used-place",
|
||||
url: `${FANAVARAN_LOOKUP_BASE_URL}/car/code-list/used-place`,
|
||||
cacheFile: "used-place.json",
|
||||
},
|
||||
{
|
||||
name: "dmg-business-line",
|
||||
url: `${FANAVARAN_LOOKUP_BASE_URL}/car/code-list/dmg-business-line`,
|
||||
cacheFile: "dmg-business-line.json",
|
||||
},
|
||||
];
|
||||
|
||||
export const TEJARAT_STATIC_ACCIDENT_FILES = {
|
||||
|
||||
@@ -16,9 +16,6 @@ import {
|
||||
ApiTags,
|
||||
} from "@nestjs/swagger";
|
||||
import { LocalActorAuthGuard } from "src/auth/guards/actor-local.guard";
|
||||
import { RolesGuard } from "src/auth/guards/role.guard";
|
||||
import { Roles } from "src/decorators/roles.decorator";
|
||||
import { RoleEnum } from "src/Types&Enums/role.enum";
|
||||
import { ClaimRequestManagementService } from "src/claim-request-management/claim-request-management.service";
|
||||
import {
|
||||
isFanavaranClientKey,
|
||||
@@ -30,8 +27,7 @@ import {
|
||||
@ApiTags("fanavaran")
|
||||
@Controller("v2/fanavaran")
|
||||
@ApiBearerAuth()
|
||||
@UseGuards(LocalActorAuthGuard, RolesGuard)
|
||||
@Roles(RoleEnum.ADMIN, RoleEnum.FIELD_EXPERT)
|
||||
@UseGuards(LocalActorAuthGuard)
|
||||
export class FanavaranController {
|
||||
constructor(
|
||||
private readonly claimRequestManagementService: ClaimRequestManagementService,
|
||||
|
||||
Reference in New Issue
Block a user