Free person slots (up to 30), Páros 3 500 Ft
CI / test (push) Successful in 2m42s
CI / build (push) Skipped
CI / deploy (push) Skipped

- Persons are free up to FREE_PERSON_SLOTS (30); packages give no person
  slots, the "+5 személy" add-on is retired (still known for old orders and
  payments in flight). At the cap: write to us, an admin grants more.
- Páros 3 500 Ft; "bought one by one" prices without persons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-24 18:32:34 +00:00
co-authored by Claude Opus 5.5
parent e6aacd0baa
commit fa46dcb757
19 changed files with 103 additions and 88 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ pub async fn grant_package(
WithRejection(Path(id), _): IdPath,
WithRejection(Json(req), _): Body<GrantPackage>,
) -> ApiResult<(StatusCode, Json<Value>)> {
let package = packages::find(&req.package).ok_or(ApiError::NotFound("package"))?;
let package = packages::on_sale(&req.package).ok_or(ApiError::NotFound("package"))?;
let exists: Option<(Uuid,)> =
sqlx::query_as("SELECT id FROM users WHERE id = $1").bind(id).fetch_optional(&state.db).await?;
exists.ok_or(ApiError::NotFound("user"))?;