fix: open whiteboards for beta

This commit is contained in:
Konstantinos Kaloutas
2022-12-16 11:40:00 +02:00
committed by Tienson Qin
parent 2bf07a3851
commit 561b16f522
3 changed files with 9 additions and 9 deletions

View File

@@ -194,12 +194,13 @@
(or (alpha-user?) (beta-user?)))
(defonce feature-matrix {:file-sync :beta
:whiteboard :alpha})
:whiteboard :beta})
(defn feature-available?
[feature]
(when (logged-in?)
(case (feature feature-matrix)
:beta (alpha-or-beta-user?)
:alpha (alpha-user?)
false)))
(or config/dev?
(when (logged-in?)
(case (feature feature-matrix)
:beta (alpha-or-beta-user?)
:alpha (alpha-user?)
false))))