mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-04 19:51:28 +03:00
Fixed issue where role/user permissions could not be changed
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user