is admin condition.

This commit is contained in:
Miroslav Šedivý 2020-12-06 20:30:34 +01:00
parent 4f56d14ae3
commit b489432dbe

View File

@ -120,6 +120,10 @@
return this.state.control.host_id !== null && this.state.member_id === this.state.control.host_id
}
public get is_admin() {
return this.state.member_id != null ? this.state.members[this.state.member_id].profile.is_admin : false
}
/////////////////////////////
// Public events
/////////////////////////////