wip: whiteboards onboarding

This commit is contained in:
Konstantinos Kaloutas
2022-11-23 21:25:04 +02:00
parent 2ca4e6dc2d
commit 718ebc0fe7
5 changed files with 36 additions and 30 deletions

View File

@@ -200,3 +200,14 @@
(defn alpha-or-beta-user?
[]
(or (alpha-user?) (beta-user?)))
(defonce feature-matrix {:file-sync :beta
:whiteboard :alpha})
(defn feature-available?
[feature]
(when (logged-in?)
(case (feature feature-matrix)
:beta (alpha-or-beta-user?)
:alpha (alpha-user?)
false)))