Przeglądaj źródła

fix(admin-ui): Correctly specify channels when creating a Role

Michael Bromley 6 lat temu
rodzic
commit
34a6a3e9a8

+ 1 - 1
packages/admin-ui/src/app/settings/components/role-detail/role-detail.component.ts

@@ -77,7 +77,7 @@ export class RoleDetailComponent extends BaseDetailComponent<Role> implements On
             code: formValue.code,
             description: formValue.description,
             permissions: this.getSelectedPermissions(),
-            channelIds: [formValue.channelId],
+            channelIds: formValue.channelIds,
         };
         this.dataService.administrator.createRole(role).subscribe(
             data => {