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:
parent
4f56d14ae3
commit
b489432dbe
@ -120,6 +120,10 @@
|
|||||||
return this.state.control.host_id !== null && this.state.member_id === this.state.control.host_id
|
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
|
// Public events
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user