]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-form/user-form.component.ts
import ceph nautilus 14.2.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / core / auth / user-form / user-form.component.ts
index 24e9b2b72d36a86090e1b5d4f8c4b31cdb510aee..77a8e75c56dd189b5c86429f15c0f0d1b53f975f 100644 (file)
@@ -93,7 +93,10 @@ export class UserFormComponent implements OnInit {
     }
 
     this.roleService.list().subscribe((roles: Array<UserFormRoleModel>) => {
-      this.allRoles = roles;
+      this.allRoles = _.map(roles, (role) => {
+        role.enabled = true;
+        return role;
+      });
     });
     if (this.mode === this.userFormMode.editing) {
       this.initEdit();