From b489432dbec77f4a7dcc98c21b272db88f418946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sun, 6 Dec 2020 20:30:34 +0100 Subject: [PATCH] is admin condition. --- src/component/main.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/component/main.vue b/src/component/main.vue index d99272c3..8dcd5d2b 100644 --- a/src/component/main.vue +++ b/src/component/main.vue @@ -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 /////////////////////////////