File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
apps/labrinth/src/routes/v3 Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ pub async fn collection_create(
78
78
. 1 ;
79
79
80
80
let limits = UserLimits :: get ( & current_user, & client) . await ?;
81
- if limits. current . collections + 1 >= limits. max . collections {
81
+ if limits. current . collections >= limits. max . collections {
82
82
return Err ( CreateError :: LimitReached ) ;
83
83
}
84
84
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ pub async fn organization_create(
138
138
. 1 ;
139
139
140
140
let limits = UserLimits :: get ( & current_user, & pool) . await ?;
141
- if limits. current . organizations + 1 >= limits. max . organizations {
141
+ if limits. current . organizations >= limits. max . organizations {
142
142
return Err ( CreateError :: LimitReached ) ;
143
143
}
144
144
Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ async fn project_create_inner(
353
353
. await ?;
354
354
355
355
let limits = UserLimits :: get ( & current_user, pool) . await ?;
356
- if limits. current . projects + 1 >= limits. max . projects {
356
+ if limits. current . projects >= limits. max . projects {
357
357
return Err ( CreateError :: LimitReached ) ;
358
358
}
359
359
You can’t perform that action at this time.
0 commit comments