iptdevs-design-system 3.2.13 → 3.2.15
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/esm2020/lib/components/forms/update-user-form/update-user-form.component.mjs +7 -4
- package/fesm2015/iptdevs-design-system.mjs +7 -3
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +6 -3
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2252,10 +2252,13 @@ class updateUserFormComponent {
|
|
|
2252
2252
|
}
|
|
2253
2253
|
validationUserRole() {
|
|
2254
2254
|
const userRole = this.baseService.getUserRole();
|
|
2255
|
-
|
|
2256
|
-
|
|
2255
|
+
const isStudentEdit = this.DataStudent?.role === 13;
|
|
2256
|
+
// Log para depuración
|
|
2257
|
+
console.log('validationUserRole - userRole:', userRole, 'isStudentEdit:', isStudentEdit, 'DataStudent:', this.DataStudent);
|
|
2258
|
+
if (userRole === 40 || userRole === 41 || userRole === 42) {
|
|
2259
|
+
this.userRoleCommercial = isStudentEdit;
|
|
2257
2260
|
}
|
|
2258
|
-
else
|
|
2261
|
+
else {
|
|
2259
2262
|
this.userRoleCommercial = false;
|
|
2260
2263
|
}
|
|
2261
2264
|
this.canEditRole = userRole === 1 || userRole === 30;
|