From afe3f913aeea5474c9857f47f6ffaaf1b5c9cef8 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Fri, 13 Aug 2021 11:06:12 +0800 Subject: [PATCH] Add 'ENABLE_WIP_FEATURES' for live page. Got tired of hijacking code. Didn't want to alter my account either. --- ui/page/livestreamCurrent/view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/page/livestreamCurrent/view.jsx b/ui/page/livestreamCurrent/view.jsx index bd981b982..8296fb4e7 100644 --- a/ui/page/livestreamCurrent/view.jsx +++ b/ui/page/livestreamCurrent/view.jsx @@ -11,7 +11,7 @@ type Props = { export default function LivestreamCurrentPage(props: Props) { const { user } = props; - const canView = user && user.global_mod; + const canView = process.env.ENABLE_WIP_FEATURES || (user && user.global_mod); return (