rez_core 2.1.66 → 2.1.68
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/package.json
CHANGED
|
@@ -105,11 +105,20 @@ export class MenuRepository extends Repository<MenuData> {
|
|
|
105
105
|
[userId],
|
|
106
106
|
);
|
|
107
107
|
|
|
108
|
+
// get user role from urm
|
|
109
|
+
|
|
110
|
+
const getUserUrm = await this.dataSource.query(
|
|
111
|
+
`
|
|
112
|
+
SELECT * from cr_user_role_mapping where user_id = ? and appcode = ?
|
|
113
|
+
`,
|
|
114
|
+
[userId, appcode],
|
|
115
|
+
);
|
|
116
|
+
|
|
108
117
|
if (
|
|
109
118
|
getUserDetails.length > 0 &&
|
|
110
119
|
getUserDetails[0].organization_id === 1
|
|
111
120
|
) {
|
|
112
|
-
return [
|
|
121
|
+
return [Number(getUserUrm[0].role_id)];
|
|
113
122
|
}
|
|
114
123
|
}
|
|
115
124
|
|