forgejo/models/organization
Cyborus a68791d707
Some checks are pending
/ release (push) Waiting to run
testing-integration / test-unit (push) Waiting to run
testing-integration / test-sqlite (push) Waiting to run
testing-integration / test-mariadb (v10.6) (push) Waiting to run
testing-integration / test-mariadb (v11.8) (push) Waiting to run
testing / backend-checks (push) Waiting to run
testing / frontend-checks (push) Waiting to run
testing / test-unit (push) Blocked by required conditions
testing / test-e2e (push) Blocked by required conditions
testing / test-remote-cacher (redis) (push) Blocked by required conditions
testing / test-remote-cacher (valkey) (push) Blocked by required conditions
testing / test-remote-cacher (garnet) (push) Blocked by required conditions
testing / test-remote-cacher (redict) (push) Blocked by required conditions
testing / test-mysql (push) Blocked by required conditions
testing / test-pgsql (push) Blocked by required conditions
testing / test-sqlite (push) Blocked by required conditions
testing / security-check (push) Blocked by required conditions
fix: prevent orgs from being added as members of orgs (#9757)
Resolves #4167

Changes it to check that the user being added is `User` or `Bot` type before allowing it

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9757
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Cyborus <cyborus@cyborus.xyz>
Co-committed-by: Cyborus <cyborus@cyborus.xyz>
2025-11-08 22:05:21 +01:00
..
TestFindOrgs fix: show membership of limited orgs 2025-06-06 19:33:26 +02:00
TestInconsistentOwnerTeam [BUG] Don't allow owner team with incorrect unit access 2024-10-11 14:48:47 +02:00
main_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
org.go fix: prevent orgs from being added as members of orgs (#9757) 2025-11-08 22:05:21 +01:00
org_list.go fix(ui): wrong org dashboard links when switching dashboard context (#8688) 2025-08-07 14:32:55 +02:00
org_list_test.go fix(ui): wrong org dashboard links when switching dashboard context (#8688) 2025-08-07 14:32:55 +02:00
org_repo.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
org_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
org_user.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
org_user_test.go fix: prevent orgs from being added as members of orgs (#9757) 2025-11-08 22:05:21 +01:00
team.go feat(ui): add links to review request targets in issue comments (#8239) 2025-07-23 04:45:58 +02:00
team_invite.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
team_invite_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
team_list.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
team_repo.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
team_test.go feat(ui): add links to review request targets in issue comments (#8239) 2025-07-23 04:45:58 +02:00
team_unit.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
team_user.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00