Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

client: Make account_too_young() gating not apply to business orgs (#54059)

Tom Houlé7306ffc12cee
diff --git a/crates/client/src/user.rs b/crates/client/src/user.rs
index f7b7efb49cf..ec9ccf23dbf 100644
--- a/crates/client/src/user.rs
+++ b/crates/client/src/user.rs
@@ -782,7 +782,16 @@ impl UserStore {
}
/// Returns whether the user's account is too new to use the service.
+ ///
+ /// This only applies when operating under the user's personal organization,
+ /// not a business organization.
pub fn account_too_young(&self) -> bool {
+ if let Some(org) = &self.current_organization {
+ if !org.is_personal {
+ return false;
+ }
+ }
+
self.plan_info
.as_ref()
.map(|plan| plan.is_account_too_young)