This commit is contained in:
Peter Maquiran
2022-05-04 16:41:48 +01:00
parent 5db11bd3f4
commit 08d836f661
@@ -267,9 +267,8 @@ export class CreateProcessPage implements OnInit {
this.dispatchFolder.SubjectTypes = this.selectedTypes; this.dispatchFolder.SubjectTypes = this.selectedTypes;
const loader = this.toastService.loading() const loader = this.toastService.loading()
switch (this.loggeduser.Profile) {
case 'MDGPR':
if(this.loggeduser.Profile != 'PR') {
switch (this.taskType) { switch (this.taskType) {
case '0': // Despacho case '0': // Despacho
this.postData = { this.postData = {
@@ -349,10 +348,7 @@ export class CreateProcessPage implements OnInit {
} }
break; break;
} }
} else if (this.loggeduser.Profile == 'PR') {
break;
case 'PR':
switch (this.taskType) { switch (this.taskType) {
case '0': // Despacho PR case '0': // Despacho PR
this.postData = { this.postData = {
@@ -438,7 +434,6 @@ export class CreateProcessPage implements OnInit {
break; break;
} }
break;
} }
} }