From 48cb89f9ed9301db06eae792668debbc3abec69e Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sun, 19 May 2024 17:59:37 -0400 Subject: [PATCH] update docs --- .../plugins/users/src/endpoints/session_info_handler.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/service/plugins/users/src/endpoints/session_info_handler.rs b/crates/service/plugins/users/src/endpoints/session_info_handler.rs index 04f5927934..24cafc660a 100644 --- a/crates/service/plugins/users/src/endpoints/session_info_handler.rs +++ b/crates/service/plugins/users/src/endpoints/session_info_handler.rs @@ -53,8 +53,9 @@ pub struct SessionUserInfo { #[deprecated(note = "DO NOT USE. Use `maybe_feature_flags` instead! The flag you're looking for is `studio`.")] pub can_access_studio: bool, - // Collection of feature / rollout flags - // NB: The BTreeSet maintains order so React doesn't introduce re-render state bugs when order changes + /// Collection of feature / rollout flags + /// This is the proper place to detect if a user has access to some rollout (non-paywall) feature. + /// NB: The BTreeSet maintains order so React doesn't introduce re-render state bugs when order changes pub maybe_feature_flags: BTreeSet, // Premium plans: