users: raise favgroup limit to 10 for Members, unlimited for Gold.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user