mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 15:45:00 +00:00
wip: whiteboards onboarding
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user