rez_core 1.0.57 → 1.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module/auth/guards/role.guard.js +3 -3
- package/dist/resources/dev.properties.yaml +21 -0
- package/dist/resources/uat.properties.yaml +15 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/app.controller.ts +12 -12
- package/src/app.service.ts +8 -8
- package/src/module/auth/guards/jwt.guard.ts +22 -22
- package/src/module/auth/guards/role.guard.ts +68 -68
- package/src/module/auth/services/jwt.service.ts +11 -11
- package/src/module/auth/strategies/local.strategy.ts +13 -13
- package/src/module/dev/dev.module.ts +12 -12
- package/src/module/dev/service/dev.service.ts +7 -7
- package/src/module/enterprise/entity/enterprise.entity.ts +37 -37
- package/src/module/enterprise/entity/organization.entity.ts +80 -80
- package/src/module/meta/dto/entity-list-data.dto.ts +6 -6
- package/src/module/meta/entity/preference.entity.ts +65 -65
- package/src/module/meta/repository/preference.repository.ts +20 -20
- package/src/module/module/controller/menu.controller.ts +15 -15
- package/src/module/module/entity/module-access.entity.ts +22 -22
- package/src/module/module/entity/module-action.entity.ts +19 -19
- package/src/module/user/controller/user.controller.ts +28 -28
- package/src/module/user/dto/update-user.dto.ts +4 -4
- package/src/module/user/entity/user-session.entity.ts +61 -61
- package/src/module/user/repository/userSession.repository.ts +33 -33
- package/src/utils/service/encryptUtil.service.ts +97 -97
- package/src/utils/service/excelUtil.service.ts +15 -15
- package/src/utils/service/reflection-helper.service.ts +53 -53
- package/.idea/250218_nodejs_core.iml +0 -12
- package/.idea/codeStyles/Project.xml +0 -59
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/dataSources.xml +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -6
- package/.idea/vcs.xml +0 -6
|
@@ -34,9 +34,9 @@ let RolesGuard = class RolesGuard {
|
|
|
34
34
|
}
|
|
35
35
|
const requiredModule = this.reflector.get('moduleCode', context.getHandler());
|
|
36
36
|
const requiredActions = this.reflector.get('actions', context.getHandler());
|
|
37
|
-
const roleAccess = await this.entityManager.query(`SELECT *
|
|
38
|
-
FROM cr_module_access
|
|
39
|
-
WHERE role_id = ${user['role_id']}
|
|
37
|
+
const roleAccess = await this.entityManager.query(`SELECT *
|
|
38
|
+
FROM cr_module_access
|
|
39
|
+
WHERE role_id = ${user['role_id']}
|
|
40
40
|
AND module_code = '${requiredModule}'`);
|
|
41
41
|
if (!roleAccess || roleAccess.length === 0) {
|
|
42
42
|
throw new common_1.ForbiddenException('Access denied: No permissions found for this module');
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
DB_HOST: "13.234.25.234"
|
|
2
|
+
DB_PORT: "3306"
|
|
3
|
+
DB_USER: "root"
|
|
4
|
+
DB_PASS: "Rezolut@123"
|
|
5
|
+
DB_NAME: "core"
|
|
6
|
+
MASTER_KEY: "0QZ2eRJv5oVILYnyBlC+FbSGVQiWKReh"
|
|
7
|
+
MASTER_IV: "heuUQf5uPVtkotrFAOKUVw=="
|
|
8
|
+
SECRET_KEY: "1hard_to_guess_secret7890a"
|
|
9
|
+
CLIENT_ID: "324529881356-596sc8ksrb9lg01i7sktofqqqf0fv2ug.apps.googleusercontent.com"
|
|
10
|
+
CLIENT_SECRET: "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"
|
|
11
|
+
CALLBACK_URL: "http://localhost:3000/auth/google/callback"
|
|
12
|
+
OTP_EXPIRY: "10"
|
|
13
|
+
OTP_LENGTH: "6"
|
|
14
|
+
VERIFY_OTP: "false"
|
|
15
|
+
DEFAULT_OTP: "123456"
|
|
16
|
+
AWS:
|
|
17
|
+
S3:
|
|
18
|
+
AWS_ACCESS_KEY_ID: "AKIAYYKIBDDSQF3KILGE"
|
|
19
|
+
AWS_SECRET_KEY: "PPDMAeO2mVUY1w2f46n/dlt5l9+7NY7E9twJb9LU"
|
|
20
|
+
AWS_REGION: "ap-south-1"
|
|
21
|
+
BUCKET_NAME: "testether"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
DB_HOST: "13.234.25.234"
|
|
2
|
+
DB_PORT: "3306"
|
|
3
|
+
DB_USER: "root"
|
|
4
|
+
DB_PASS: "Rezolut@123"
|
|
5
|
+
DB_NAME: "ether_core"
|
|
6
|
+
MASTER_KEY: "0QZ2eRJv5oVILYnyBlC+FbSGVQiWKReh"
|
|
7
|
+
MASTER_IV: "heuUQf5uPVtkotrFAOKUVw=="
|
|
8
|
+
SECRET_KEY: "1hard_to_guess_secret7890a"
|
|
9
|
+
CLIENT_ID: "324529881356-596sc8ksrb9lg01i7sktofqqqf0fv2ug.apps.googleusercontent.com"
|
|
10
|
+
CLIENT_SECRET: "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"
|
|
11
|
+
CALLBACK_URL: "http://localhost:3000/auth/google/callback"
|
|
12
|
+
OTP_EXPIRY: "10"
|
|
13
|
+
OTP_LENGTH: "6"
|
|
14
|
+
VERIFY_OTP: "false"
|
|
15
|
+
DEFAULT_OTP: "123456"
|