Add server limit override for development environment

This commit is contained in:
Andras Bacsai 2024-03-01 11:41:28 +01:00
parent a352e4cbf7
commit 860c537f81

View File

@ -62,6 +62,9 @@ public function serverOverflow() {
}
static public function serverLimit()
{
if (currentTeam()->id === 0 && isDev()) {
return 9999999;
}
return Team::find(currentTeam()->id)->limits['serverLimit'];
}
public function limits(): Attribute