Skip to content

Commit c1cbdad

Browse files
Add the currently enabled productKey to the LABKEY object (#7545)
1 parent b40ea20 commit c1cbdad

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

core/src/org/labkey/core/CoreModule.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
import org.labkey.api.notification.NotificationMenuView;
106106
import org.labkey.api.portal.ProjectUrls;
107107
import org.labkey.api.premium.AntiVirusProviderRegistry;
108+
import org.labkey.api.products.Product;
108109
import org.labkey.api.products.ProductRegistry;
109110
import org.labkey.api.qc.DataStateManager;
110111
import org.labkey.api.query.DefaultSchema;
@@ -1398,6 +1399,7 @@ public JSONObject getPageContextJson(ContainerUser context)
13981399
JSONObject json = new JSONObject(getDefaultPageContextJson(context.getContainer()));
13991400
json.put("productFeatures", ProductRegistry.getProductFeatureSet());
14001401
json.put("primaryApplicationId", ProductRegistry.get().getPrimaryApplicationId(context.getContainer()));
1402+
json.put("productKey", new ProductConfiguration().getCurrentProductKey());
14011403
return json;
14021404
}
14031405

0 commit comments

Comments
 (0)