Skip to content

Commit

Permalink
fix: enterprise badging
Browse files Browse the repository at this point in the history
  • Loading branch information
janl committed Apr 10, 2019
1 parent 5b054fe commit 8883528
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 8883528

Please sign in to comment.