Skip to content

Commit afdfc3c

Browse files
authored
Fix image uploading not working when uploading 20 files
1 parent 9b998c7 commit afdfc3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/app/Policies/ImagePolicy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function view(?User $user, Image $image)
4646
*/
4747
public function create(User $user, Mod $mod)
4848
{
49-
if ($mod->files()->count() >= 25) {
49+
if ($mod->images()->count() >= 20) {
5050
return false;
5151
}
5252

0 commit comments

Comments
 (0)