Add get User From DMP on DMP editor
This commit is contained in:
parent
d9b53f6056
commit
8ed3c658d4
|
@ -248,6 +248,13 @@ export class DmpEditorComponent extends BaseComponent implements OnInit, IBreadC
|
|||
}
|
||||
}
|
||||
|
||||
getUserFromDMP(): any {
|
||||
if (this.dmp) {
|
||||
const principal: Principal = this.authentication.current();
|
||||
return this.dmp.users.find(x => x.id === principal.id);
|
||||
}
|
||||
}
|
||||
|
||||
registerFormEventsForNewItem() {
|
||||
this.breadCrumbs = observableOf([
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue