Fixed issue where role/user permissions could not be changed

This commit is contained in:
Tzahi12345
2023-01-01 12:12:32 -05:00
parent 964760a6a8
commit 0cf9f2de7a
6 changed files with 39 additions and 47 deletions

View File

@@ -24,7 +24,7 @@ export class ManageRoleComponent implements OnInit {
}
constructor(public postsService: PostsService, private dialogRef: MatDialogRef<ManageRoleComponent>,
@Inject(MAT_DIALOG_DATA) public data: any) {
@Inject(MAT_DIALOG_DATA) public data: {role: string}) {
if (this.data) {
this.role = this.data.role;
this.available_permissions = this.postsService.available_permissions;