gitforge/templates/org/team
Antonin Delpeuch c99b35cfa4 feat: setting to add team members by invitations (#12845)
Fixes #12564. Fixes #8951.

This introduces a new setting, `ADD_MEMBERS_BY_INVITATIONS`, which is turned off by default.
When turned on, adding a user to a team issues an invitation instead of adding them directly to the team.
A prerequisite for this work was to be able to link invitations to existing users (so far, they were only associated to an email address, since those invitations were meant to be issued to users who didn't have an account yet).

---

I plan to work on the following improvements, which I propose to do in separate PRs given that this one is already a bit big:
* generate an in-app notification for the invited user
* advertise the invitation to the invited user from the org page as well (#12120)
* show the list of invited users in the list of organization members (not just on the team page)

and various other improvements to invitations (#12570, #12716).

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12845
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2026-06-15 01:46:25 +02:00
..
invite.tmpl fix(ui): fix and simplify org invite template view (#12580) 2026-05-19 21:17:08 +02:00
members.tmpl feat: setting to add team members by invitations (#12845) 2026-06-15 01:46:25 +02:00
navbar.tmpl
new.tmpl fix(i18n): reuse string for repository access, fix capitalization consistency (#11683) 2026-03-15 15:09:43 +01:00
repositories.tmpl fix: paginate list of repositories in a team (#12549) 2026-05-14 22:30:56 +02:00
sidebar.tmpl fix(i18n): reuse string for repository access, fix capitalization consistency (#11683) 2026-03-15 15:09:43 +01:00
teams.tmpl chore: rename SafeHTML to TrustHTML (#11481) 2026-03-08 02:41:37 +01:00