Commit 5a688e4f authored by Douwe Maan's avatar Douwe Maan

Merge branch 'improve-underlicense-message' into 'master'

Make it clear the license overusage is visible only to admins

Also make the text describing the number of licensed users consistent.

Closes #607, #610 

Screenshot:

![image](/uploads/61be740a35a4d4c778233645934554b6/image.png)


See merge request !423
parents 67db7eda 4314ab10
......@@ -3,6 +3,7 @@ Please view this file on the master branch, on stable branches it's out of date.
v 8.9.0 (unreleased)
v 8.8.3
- Make it clear the license overusage is visible only to admins
- Reduce load on DB for license upgrade check
v 8.8.2
......
......@@ -71,8 +71,8 @@ module LicenseHelper
message << "Your GitLab license currently covers #{license.user_count}"
message << "users, but it looks like your site has grown to"
message << "#{current_active_user_count} users. Please contact"
message << "sales@gitlab.com to increase the seats on your license."
message << "Thank you for choosing GitLab."
message << "sales@gitlab.com to increase the number of licensed users."
message << "Note: This message is only visible to you as an admin."
end
message.join(" ")
......
......@@ -35,7 +35,7 @@ describe LicenseHelper do
allow(license).to receive(:restrictions).and_return({ active_user_count: 50 })
allow(User).to receive(:active).and_return(Array.new(100))
warn_msg = 'Your GitLab license currently covers 50 users, but it looks like your site has grown to 100 users. Please contact sales@gitlab.com to increase the seats on your license. Thank you for choosing GitLab.'
warn_msg = 'Your GitLab license currently covers 50 users, but it looks like your site has grown to 100 users. Please contact sales@gitlab.com to increase the number of licensed users. Note: This message is only visible to you as an admin.'
expect(license_message(signed_in: true, is_admin: true)).to eq(warn_msg)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment