ngx-techlify-core 14.12.0 → 14.13.1

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.
@@ -1293,6 +1293,8 @@ class EntityFileService extends TechlifyServiceBaseClass {
1293
1293
  formData.append('entity_id', params.entity_id);
1294
1294
  formData.append('entity_type', params.entity_type);
1295
1295
  }
1296
+ params?.disk ? formData.append('disk', params.disk) : null;
1297
+ params?.sub_path ? formData.append('sub_path', params.sub_path) : null;
1296
1298
  return this.http
1297
1299
  .skipHeader()
1298
1300
  .post("api/entity-files-upload", formData).toPromise();
@@ -2325,7 +2327,7 @@ class CurrentUserService {
2325
2327
  if (!this.user) {
2326
2328
  return false;
2327
2329
  }
2328
- if (this.user.user_type_id == 1 || this.user.user_type_id == 2) {
2330
+ if (this.user.user_type_id == 1) {
2329
2331
  return true;
2330
2332
  }
2331
2333
  else {