Skip to content

Commit

Permalink
improve naming in security plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Dec 9, 2019
1 parent 8a109db commit 6536a62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x-pack/plugins/security/server/licensing/license_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ export class SecurityLicenseService {
};
}

const isLicensePlatinumOrTrial = rawLicense.isOneOf(['platinum', 'enterprise', 'trial']);
const isLicensePlatinumOrBetter = rawLicense.isOneOf(['platinum', 'enterprise', 'trial']);
return {
showLogin: true,
allowLogin: true,
showLinks: true,
// Only platinum and trial licenses are compliant with field- and document-level security.
allowRoleDocumentLevelSecurity: isLicensePlatinumOrTrial,
allowRoleFieldLevelSecurity: isLicensePlatinumOrTrial,
allowRoleDocumentLevelSecurity: isLicensePlatinumOrBetter,
allowRoleFieldLevelSecurity: isLicensePlatinumOrBetter,
allowRbac: true,
};
},
Expand Down

0 comments on commit 6536a62

Please sign in to comment.