[PR #2534] [MERGED] Restricting access to fork functioanlity to users with Code access #16449

Closed
opened 2025-11-02 12:10:54 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2534
Author: @jonasfranz
Created: 9/17/2017
Status: Merged
Merged: 9/18/2017
Merged by: @lunny

Base: masterHead: fix-unauthorized-fork


📝 Commits (7)

📊 Changes

3 files changed (+73 additions, -3 deletions)

View changed files

📝 models/repo.go (+1 -1)
📝 modules/context/repo.go (+68 -0)
📝 routers/routes/routes.go (+4 -2)

📄 Description

Actual situation: Users how do not have access to UnitTypeCode can create a fork of the repository and gain access to the code.

This fixes this problem by restiricting access to the fork functionality to users with UnitTypeCode.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/2534 **Author:** [@jonasfranz](https://github.com/jonasfranz) **Created:** 9/17/2017 **Status:** ✅ Merged **Merged:** 9/18/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `fix-unauthorized-fork` --- ### 📝 Commits (7) - [`09f817c`](https://github.com/go-gitea/gitea/commit/09f817c2c9b6ec00b5d3d9f17a94c222a6e4517a) Hotfix for "Add time manually" (https://github.com/go-gitea/gitea/pull/2211#issuecomment-328780125) - [`b3fd467`](https://github.com/go-gitea/gitea/commit/b3fd46726fb1421263a5c5c38e1aec117a7efaac) Merge branch 'master' of https://github.com/go-gitea/gitea - [`af85943`](https://github.com/go-gitea/gitea/commit/af8594364c1e422370fa2ea9c4b39385a09b43ff) Merge branch 'master' of https://github.com/go-gitea/gitea - [`b4b9703`](https://github.com/go-gitea/gitea/commit/b4b970352d9a5c945d0dd4c0ba4bfdc9219aa87c) Checking if Code unit is enabled before creating a fork. - [`f779a8f`](https://github.com/go-gitea/gitea/commit/f779a8fc8daffe54e7276b18c2137512f3ef550e) Adding a discrete function for RepoIDAssignment - [`489d41b`](https://github.com/go-gitea/gitea/commit/489d41bdaf1c57e18b2d20dc6f38d67a43877b33) Improved Documentation - [`6f744f7`](https://github.com/go-gitea/gitea/commit/6f744f7d3fc36c891ec1ec8cabd9500f262e0190) Merge branch 'master' into fix-unauthorized-fork ### 📊 Changes **3 files changed** (+73 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `models/repo.go` (+1 -1) 📝 `modules/context/repo.go` (+68 -0) 📝 `routers/routes/routes.go` (+4 -2) </details> ### 📄 Description Actual situation: Users how do not have access to `UnitTypeCode` can create a fork of the repository and gain access to the code. This fixes this problem by restiricting access to the fork functionality to users with `UnitTypeCode`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:10:54 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16449