Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/views/admin/info/LicenseCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const LicenseCard = ({ statistics, isLoading }) => {
? <Skeleton variant='rect' width='x112' height='x112'/>
: <UsagePieGraph
label={t('Users')}
used={statistics?.totalUsers}
used={statistics?.activeUsers}
total={maxActiveUsers}
size={112}
isLoading={isLoading}
Expand Down
3 changes: 3 additions & 0 deletions ee/app/license/server/license.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,19 +165,22 @@ class LicenseClass {
}
if (!this._validateURL(license.url, this.url)) {
item.valid = false;
console.error(`#### License error: invalid url, licensed to ${ license.url }, used on ${ this.url }`);
this._invalidModules(license.modules);
return item;
}
}

if (license.expiry && this._validateExpiration(license.expiry)) {
item.valid = false;
console.error(`#### License error: expired, valid until ${ license.expiry }`);
this._invalidModules(license.modules);
return item;
}

if (license.maxActiveUsers && !this._hasValidNumberOfActiveUsers(license.maxActiveUsers)) {
item.valid = false;
console.error(`#### License error: over seats, max allowed ${ license.maxActiveUsers }, current active users ${ Users.getActiveLocalUserCount() }`);
this._invalidModules(license.modules);
return item;
}
Expand Down