somaz
140fac63e2
fix(repo): honor ALLOW_FORK_INTO_SAME_OWNER for organizations ( #40025 )
...
With `[repository] ALLOW_FORK_INTO_SAME_OWNER = true` a user can fork
their own repository, but an organization still cannot fork a repository
it owns. The fork button check and the owner list on the fork page
compared the organization with the repository owner directly instead of
asking `CanUserForkBetweenOwners`, and the walk over parent repositories
dropped the owning organization whenever the setting was on.
Organizations now follow the setting the same way users already do, and
nothing changes when it is off.
Fixes https://github.com/go-gitea/gitea/issues/40021
Assisted-by: Claude Code:claude-opus-5-5
2026-10-30 17:28:47 +00:00
..
2026-10-24 13:48:19 +00:00
2026-10-28 09:19:35 +00:00
2026-05-26 15:49:31 -07:00
2026-10-19 00:34:01 +00:00
2026-10-25 21:41:06 +00:00
2026-10-14 07:19:49 +00:00
2026-05-26 15:49:31 -07:00
2026-10-10 16:34:53 +02:00
2026-05-26 15:49:31 -07:00
2026-07-07 07:08:05 +00:00
2026-10-20 15:04:10 +02:00
2026-05-26 15:49:31 -07:00
2026-10-19 00:34:01 +00:00
2026-05-26 15:49:31 -07:00
2026-07-20 16:07:38 +00:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-07-17 18:44:31 +08:00
2026-07-28 17:04:22 +00:00
2026-05-26 15:49:31 -07:00
2026-07-20 16:07:38 +00:00
2026-10-10 16:34:53 +02:00
2026-10-30 17:28:47 +00:00
2026-10-19 00:34:01 +00:00
2026-05-26 15:49:31 -07:00
2026-10-29 23:57:51 +00:00
2026-10-06 08:03:06 +00:00
2026-10-06 08:03:06 +00:00
2026-07-25 20:39:36 +08:00
2026-10-18 12:56:04 +00:00
2026-10-30 08:22:37 +00:00
2026-10-30 08:22:37 +00:00
2026-10-30 08:22:37 +00:00
2026-10-28 09:19:35 +00:00
2026-10-18 12:56:04 +00:00
2026-10-17 10:58:33 +00:00
2026-05-26 15:49:31 -07:00
2026-07-07 14:40:12 +08:00
2026-07-27 07:46:00 +00:00
2026-05-26 15:49:31 -07:00
2026-10-30 08:22:37 +00:00
2026-08-09 10:25:06 +00:00
2026-10-27 21:40:42 +01:00
2026-10-18 06:29:49 -07:00
2026-10-30 08:22:37 +00:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-10-24 13:48:19 +00:00
2026-07-15 17:30:01 +00:00
2026-10-25 21:21:19 +00:00
2026-10-23 22:41:08 +00:00
2026-08-29 08:20:46 +02:00
2026-10-23 01:53:45 +00:00
2026-10-30 08:22:37 +00:00
2026-06-28 09:31:35 +00:00
2026-10-06 17:28:28 +00:00
2026-10-24 13:48:19 +00:00
2026-10-30 08:22:37 +00:00
2026-10-20 21:00:32 +00:00
2026-05-26 15:49:31 -07:00
2026-09-30 20:25:14 +02:00
2026-10-20 15:04:10 +02:00
2026-08-11 18:01:02 +02:00
2026-10-10 16:34:53 +02:00
2026-08-29 08:20:46 +02:00
2026-08-16 03:00:59 +00:00
2026-05-26 15:49:31 -07:00
2026-08-16 03:00:59 +00:00
2026-08-23 18:31:22 +02:00
2026-08-24 18:26:10 +00:00
2026-10-25 21:41:06 +00:00
2026-10-18 12:56:04 +00:00
2026-10-28 00:33:35 +00:00
2026-08-28 21:46:58 +00:00
2022-11-27 18:20:29 +00:00
2026-09-14 22:15:21 +02:00
2026-10-18 09:23:12 +00:00
2026-05-26 15:49:31 -07:00
2026-08-14 11:31:23 +02:00
2026-09-14 22:15:21 +02:00