Verified Commit 77e6bde7 authored by Damien's avatar Damien

FEAT #13605 TIME 0:40 Fix add dest when no destination

parent a7131e09
......@@ -387,7 +387,11 @@ export class DiffusionsListComponent implements OnInit {
let item_mode: any = 'cc';
if (this.hasEmptyDest() && element.type == 'user') {
item_mode = await this.isUserInCurrentEntity(element.serialId) && this.availableRoles.filter(role => role.id === 'dest')[0].canUpdate ? 'dest' : 'cc';
if (this.currentEntityId) {
item_mode = await this.isUserInCurrentEntity(element.serialId) && this.availableRoles.filter(role => role.id === 'dest')[0].canUpdate ? 'dest' : 'cc';
} else {
item_mode = this.availableRoles.filter(role => role.id === 'dest')[0].canUpdate ? 'dest' : 'cc';
}
}
let itemType = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment