iptdevs-design-system 3.2.14 → 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.
@@ -2253,10 +2253,12 @@ class updateUserFormComponent {
2253
2253
  validationUserRole() {
2254
2254
  const userRole = this.baseService.getUserRole();
2255
2255
  const isStudentEdit = this.DataStudent?.role === 13;
2256
- if (userRole == 40 || userRole == 41 || userRole == 42 && isStudentEdit) {
2257
- this.userRoleCommercial = true;
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;
2258
2260
  }
2259
- else if (userRole == 40 || userRole == 41 || userRole == 42 && !isStudentEdit) {
2261
+ else {
2260
2262
  this.userRoleCommercial = false;
2261
2263
  }
2262
2264
  this.canEditRole = userRole === 1 || userRole === 30;