users: raise favgroup limit to 10 for Members, unlimited for Gold.

This commit is contained in:
evazion
2022-04-24 21:37:31 -05:00
parent 7d650a5dae
commit 0d4e2059d7
2 changed files with 4 additions and 8 deletions

View File

@@ -464,14 +464,10 @@ class User < ApplicationRecord
end end
def favorite_group_limit(level) def favorite_group_limit(level)
if level >= User::Levels::BUILDER if level >= User::Levels::GOLD
Float::INFINITY Float::INFINITY
elsif level == User::Levels::PLATINUM
10
elsif level == User::Levels::GOLD
5
else else
3 10
end end
end end

View File

@@ -81,8 +81,8 @@
</tr> </tr>
<tr> <tr>
<td>Favorite Groups</td> <td>Favorite Groups</td>
<td>3</td> <td><%= User.favorite_group_limit(User::Levels::MEMBER) %></td>
<td>5</td> <td>Unlimited</td>
</tr> </tr>
<tr> <tr>
<td>Saved Searches</td> <td>Saved Searches</td>