iptdevs-design-system 3.2.15 → 3.2.17

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.
@@ -989,6 +989,10 @@ class UserService extends IPTGeneralService {
989
989
  this.generateRequestParams(params);
990
990
  return this.http.post(serviceUrl, this.httpOptions);
991
991
  }
992
+ searchForUserByCode(codeUser) {
993
+ let serviceUrl = this.SERVICE_URL + 'search/for/user/by/code/' + codeUser;
994
+ return this.http.get(serviceUrl);
995
+ }
992
996
  }
993
997
  UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: UserService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
994
998
  UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: UserService, providedIn: 'root' });
@@ -2253,8 +2257,6 @@ class updateUserFormComponent {
2253
2257
  validationUserRole() {
2254
2258
  const userRole = this.baseService.getUserRole();
2255
2259
  const isStudentEdit = this.DataStudent?.role === 13;
2256
- // Log para depuración
2257
- console.log('validationUserRole - userRole:', userRole, 'isStudentEdit:', isStudentEdit, 'DataStudent:', this.DataStudent);
2258
2260
  if (userRole === 40 || userRole === 41 || userRole === 42) {
2259
2261
  this.userRoleCommercial = isStudentEdit;
2260
2262
  }