Skip to content

Commit 1e497e9

Browse files
committed
oops, bad guardrail
1 parent 4a56bf8 commit 1e497e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/basil_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def review
396396

397397
def commission
398398
@generated_images_count = current_user.basil_commissions.with_deleted.count
399-
if @generated_images_count > BasilService::FREE_IMAGE_LIMIT
399+
if !current_user.on_premium_plan? && @generated_images_count > BasilService::FREE_IMAGE_LIMIT
400400
redirect_back fallback_location: basil_path, notice: "You've reached your free image limit. Please upgrade to generate more images."
401401
return
402402
end

0 commit comments

Comments
 (0)