@@ -1,4 +1,5 @@
|
||||
import Company from "./entities/company";
|
||||
import config from "../../core/config";
|
||||
import {
|
||||
CompanyFeaturesEnum,
|
||||
CompanyLimitsEnum,
|
||||
@@ -53,6 +54,9 @@ export function formatCompany(
|
||||
[CompanyFeaturesEnum.CHAT_EDIT_FILES]: true,
|
||||
[CompanyFeaturesEnum.CHAT_UNLIMITED_STORAGE]: true,
|
||||
[CompanyFeaturesEnum.COMPANY_INVITE_MEMBER]: true,
|
||||
// use the config value for this one
|
||||
[CompanyFeaturesEnum.COMPANY_SEARCH_USERS]:
|
||||
(config.get("drive.featureSearchUsers") as boolean) || true,
|
||||
},
|
||||
{
|
||||
...(res.plan?.features || {}),
|
||||
@@ -62,6 +66,8 @@ export function formatCompany(
|
||||
},
|
||||
);
|
||||
|
||||
console.log("🚀🚀 res.plan.features: ", res.plan.features);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user