Skip to content

Commit

Permalink
fixing canViewMlNodes value for viewer users
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Jun 29, 2023
1 parent 82a51a7 commit 61a2370
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ function applyEnabledFeatures(mlCaps: MlCapabilities, enabledFeatures: MlFeature
mlCaps.isDFAEnabled = enabledFeatures.dfa;
mlCaps.isNLPEnabled = enabledFeatures.nlp;

mlCaps.canViewMlNodes = mlCaps.isADEnabled && mlCaps.isDFAEnabled && mlCaps.isNLPEnabled;
mlCaps.canViewMlNodes =
mlCaps.canViewMlNodes && mlCaps.isADEnabled && mlCaps.isDFAEnabled && mlCaps.isNLPEnabled;

if (enabledFeatures.ad === false) {
featureCapabilities.ad.forEach((c) => (mlCaps[c] = false));
Expand Down

0 comments on commit 61a2370

Please sign in to comment.