Skip to content

Commit

Permalink
fix: startup plan does not allow correct permissions (#3602)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell committed Mar 12, 2024
1 parent d13013c commit 9642e2f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions frontend/common/utils/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,7 @@ const Utils = Object.assign({}, require('./base/_utils'), {
if (!plan || planName === planNames.free) {
return false
}
const isStartupOrGreater = planName !== planNames.startup
const isScaleupOrGreater =
isStartupOrGreater && planName !== planNames.startup
const isScaleupOrGreater = planName !== planNames.startup
const isEnterprise = planName === planNames.enterprise

switch (permission) {
Expand All @@ -291,11 +289,11 @@ const Utils = Object.assign({}, require('./base/_utils'), {
break
}
case 'CREATE_ADDITIONAL_PROJECT': {
valid = isStartupOrGreater
valid = true // startup or greater
break
}
case '2FA': {
valid = isStartupOrGreater
valid = true // startup or greater
break
}
case 'RBAC': {
Expand All @@ -315,7 +313,7 @@ const Utils = Object.assign({}, require('./base/_utils'), {
break
}
case 'SCHEDULE_FLAGS': {
valid = isStartupOrGreater
valid = true // startup or greater
break
}
case '4_EYES': {
Expand Down

0 comments on commit 9642e2f

Please sign in to comment.