users: raise favgroup limit to 10 for Members, unlimited for Gold.
This commit is contained in:
@@ -464,14 +464,10 @@ class User < ApplicationRecord
|
||||
end
|
||||
|
||||
def favorite_group_limit(level)
|
||||
if level >= User::Levels::BUILDER
|
||||
if level >= User::Levels::GOLD
|
||||
Float::INFINITY
|
||||
elsif level == User::Levels::PLATINUM
|
||||
10
|
||||
elsif level == User::Levels::GOLD
|
||||
5
|
||||
else
|
||||
3
|
||||
10
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -81,8 +81,8 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Favorite Groups</td>
|
||||
<td>3</td>
|
||||
<td>5</td>
|
||||
<td><%= User.favorite_group_limit(User::Levels::MEMBER) %></td>
|
||||
<td>Unlimited</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Saved Searches</td>
|
||||
|
||||
Reference in New Issue
Block a user