diff --git a/src/app/auth/models.ts b/src/app/auth/models.ts index e21456ec..8793e18b 100644 --- a/src/app/auth/models.ts +++ b/src/app/auth/models.ts @@ -1,10 +1,10 @@ export interface AvailablePermissions { - create?: boolean, - get?: boolean, - watch?: boolean - list?: boolean - delete?: boolean, - update?: boolean, + create?: boolean; + get?: boolean; + watch?: boolean; + list?: boolean; + delete?: boolean; + update?: boolean; } export class Permissions { diff --git a/src/app/workflow/workflow.component.ts b/src/app/workflow/workflow.component.ts index 8b2489a3..e112184a 100644 --- a/src/app/workflow/workflow.component.ts +++ b/src/app/workflow/workflow.component.ts @@ -114,13 +114,7 @@ export class WorkflowComponent implements OnInit { private checkPermissions(namespace: string) { this.permissionService - .getWorkflowPermissions(namespace, '', 'list') - .subscribe(res => { - this.workflowPermissions = res; - }); - - this.permissionService - .getWorkspacePermissions(namespace, '', 'create') + .getWorkflowPermissions(namespace, '', 'create', 'list') .subscribe(res => { this.workflowPermissions = res; });