mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-19 09:36:47 +10:00
Whoops.
This commit is contained in:
@@ -96,7 +96,7 @@ class License < ActiveRecord::Base
|
||||
return unless self.license? && self.restricted?(:active_user_count)
|
||||
|
||||
restricted_user_count = self.restrictions[:active_user_count]
|
||||
active_user_count = 1050;User.active.count
|
||||
active_user_count = User.active.count
|
||||
historical_active_user_count = HistoricalData.maximum(:active_user_count) || 0
|
||||
|
||||
max_active_user_count = [active_user_count, historical_active_user_count].max
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
%strong
|
||||
Exceeds license limit
|
||||
|
||||
- historical = 1050;HistoricalData.maximum(:active_user_count)
|
||||
- historical = HistoricalData.maximum(:active_user_count)
|
||||
- if historical
|
||||
%li
|
||||
%span.light Maximum active users:
|
||||
|
||||
Reference in New Issue
Block a user