diff --git a/crates/app/src/public/html/mod/profile.lisp b/crates/app/src/public/html/mod/profile.lisp index 65813b2..b036e23 100644 --- a/crates/app/src/public/html/mod/profile.lisp +++ b/crates/app/src/public/html/mod/profile.lisp @@ -256,6 +256,9 @@ MANAGE_STACKS: 1 << 26, STAFF_BADGE: 1 << 27, MANAGE_APPS: 1 << 28, + MANAGE_JOURNALS: 1 << 29, + MANAGE_NOTES: 1 << 30, + MANAGE_INVITES: 1 << 31, }, ], ); diff --git a/crates/app/src/public/html/profile/settings.lisp b/crates/app/src/public/html/profile/settings.lisp index 598b0ec..6bba68e 100644 --- a/crates/app/src/public/html/profile/settings.lisp +++ b/crates/app/src/public/html/profile/settings.lisp @@ -536,7 +536,7 @@ (icon (text "plus")) (str (text "settings:label.generate_invite"))) - (text "{{ components::supporter_ad(body=\"Become a supporter to generate up to 24 invite codes! You can currently have 2 maximum.\") }} {% for code in invites %}") + (text "{{ components::supporter_ad(body=\"Become a supporter to generate up to 48 invite codes! You can currently have 2 maximum.\") }} {% for code in invites %}") (div ("class" "card flex flex-col gap-2") (text "{% if code[1].is_used -%}") @@ -673,7 +673,7 @@ (text "{% if config.security.enable_invite_codes -%}") (li - (text "Create up to 24 invite codes")) + (text "Create up to 48 invite codes")) (text "{%- endif %}")) (a ("href" "{{ config.stripe.payment_link }}?client_reference_id={{ user.id }}") diff --git a/crates/core/src/database/invite_codes.rs b/crates/core/src/database/invite_codes.rs index 386149a..18e4aec 100644 --- a/crates/core/src/database/invite_codes.rs +++ b/crates/core/src/database/invite_codes.rs @@ -68,8 +68,8 @@ impl DataManager { Ok(out) } - const MAXIMUM_FREE_INVITE_CODES: usize = 2; - const MAXIMUM_SUPPORTER_INVITE_CODES: usize = 24; + const MAXIMUM_FREE_INVITE_CODES: usize = 4; + const MAXIMUM_SUPPORTER_INVITE_CODES: usize = 48; const MINIMUM_ACCOUNT_AGE_FOR_FREE_INVITE_CODES: usize = 2_629_800_000; // 1mo /// Create a new invite_code in the database.