Browse Source

Update RateLimit trait

Daniel Supernault 6 years ago
parent
commit
880c8e8a71
1 changed files with 15 additions and 0 deletions
  1. 15 0
      app/Util/RateLimit/User.php

+ 15 - 0
app/Util/RateLimit/User.php

@@ -68,4 +68,19 @@ trait User {
 	{
 		return 100;
 	}
+
+	public function getMaxCollectionsPerHourAttribute()
+	{
+		return 10;
+	}
+
+	public function getMaxCollectionsPerDayAttribute()
+	{
+		return 20;
+	}
+
+	public function getMaxCollectionsPerMonthAttribute()
+	{
+		return 100;
+	}
 }