change(ui): check for edition msaas

This commit is contained in:
Shekar Siri 2024-02-09 15:11:50 +01:00
parent 00c98ea3f3
commit d9bf22b04c

View file

@ -149,6 +149,7 @@ export default connect((state: any) => ({
state.getIn(['user', 'account', 'admin']) || state.getIn(['user', 'account', 'superAdmin']),
isEnterprise: !document.location.href.includes('app.openreplay.com') && (
state.getIn(['user', 'account', 'edition']) === 'ee' ||
state.getIn(['user', 'account', 'edition']) === 'msaas' ||
state.getIn(['user', 'authDetails', 'edition']) === 'ee'
)
}))(observer(CaptureRate));