Skip to content

Commit

Permalink
Merge pull request #52 from greenkeeperio/fix/ent
Browse files Browse the repository at this point in the history
fix: enterprise badging
  • Loading branch information
espy authored Apr 10, 2019
2 parents 5b054fe + 8883528 commit 6d0e0a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/badges.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ module.exports = async function badges (server, options, next) {
function getBadge (repoDoc, payDoc, style) {
if (!repoDoc.enabled) return [disabled[style], etags['disabled'][style]]
if (!repoDoc.private) return [enabled[style], etags['enabled'][style]]
if (env.IS_ENTERPRISE) return [enabled[style], etags['enabled'][style]]
if (!payDoc) return [paymentRequired[style], etags['paymentRequired'][style]]
if ([
'org', 'org_year', 'org_eur', 'org_year_eur',
Expand Down

0 comments on commit 6d0e0a5

Please sign in to comment.