2
2
mirror of https://github.com/m1k1o/neko.git synced 2024-07-24 14:40:50 +12:00

is admin condition.

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

@ -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
/////////////////////////////