[PR #4034] [MERGED] hide issues from org private repos w/o team assignment #17206

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4034
Author: @daviian
Created: 5/24/2018
Status: Merged
Merged: 6/21/2018
Merged by: @techknowlogick

Base: masterHead: bugfix/unallowed-issue-listing


📝 Commits (10+)

  • 6f46ee3 hide issues from org private repos w/o team assignment
  • 0e3c279 add comments to altered tests
  • 0b4402b fix test
  • 2d77d18 fix null value on bool field
  • 17b946e add suggested changes
  • 8ea95f6 further improvements
  • a122731 move team unittypes to new team_unit table
  • cab5121 limit GetUserRepositoryIDs by accessible unittypes
  • a1fdf48 check unit types on action and notification creation
  • 7b990f7 adjust test to take new permission checks into account

📊 Changes

24 files changed (+545 additions, -72 deletions)

View changed files

📝 integrations/api_repo_test.go (+3 -3)
📝 models/access_test.go (+12 -4)
📝 models/fixtures/repository.yml (+13 -2)
📝 models/fixtures/team.yml (+1 -7)
📝 models/fixtures/team_repo.yml (+8 -2)
models/fixtures/team_unit.yml (+209 -0)
📝 models/fixtures/user.yml (+1 -1)
📝 models/migrations/migrations.go (+2 -0)
📝 models/migrations/v38.go (+7 -2)
models/migrations/v69.go (+80 -0)
📝 models/models.go (+1 -0)
📝 models/notification.go (+10 -0)
📝 models/org.go (+16 -1)
📝 models/org_team.go (+75 -11)
📝 models/org_test.go (+6 -6)
📝 models/repo.go (+5 -13)
📝 models/repo_list_test.go (+3 -3)
📝 models/repo_watch.go (+17 -0)
📝 models/user.go (+28 -10)
📝 models/user_test.go (+22 -0)

...and 4 more files

📄 Description

targets https://github.com/go-gitea/gitea/issues/4029

hides private organization repository issues from users that have no access to them.


🔄 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/4034 **Author:** [@daviian](https://github.com/daviian) **Created:** 5/24/2018 **Status:** ✅ Merged **Merged:** 6/21/2018 **Merged by:** [@techknowlogick](https://github.com/techknowlogick) **Base:** `master` ← **Head:** `bugfix/unallowed-issue-listing` --- ### 📝 Commits (10+) - [`6f46ee3`](https://github.com/go-gitea/gitea/commit/6f46ee39a1183f8fdfd0cb303f68c555c2ece865) hide issues from org private repos w/o team assignment - [`0e3c279`](https://github.com/go-gitea/gitea/commit/0e3c27983650f2899ebbe99445cf9c1dc7079115) add comments to altered tests - [`0b4402b`](https://github.com/go-gitea/gitea/commit/0b4402baf6444cac98fd95925fc293df036cfd74) fix test - [`2d77d18`](https://github.com/go-gitea/gitea/commit/2d77d187435793bacbd7041eb2000095ab6a6d56) fix null value on bool field - [`17b946e`](https://github.com/go-gitea/gitea/commit/17b946e27efaffb216badb41858b35ffb0036ccb) add suggested changes - [`8ea95f6`](https://github.com/go-gitea/gitea/commit/8ea95f6e1b71360ed320873bc391f1fdd2382554) further improvements - [`a122731`](https://github.com/go-gitea/gitea/commit/a122731c0bc9fcda2158f4353488debf0cee77c2) move team unittypes to new team_unit table - [`cab5121`](https://github.com/go-gitea/gitea/commit/cab512160814519bebfecada8a0f1eb154e77e5b) limit GetUserRepositoryIDs by accessible unittypes - [`a1fdf48`](https://github.com/go-gitea/gitea/commit/a1fdf48d329d8f21e01f358772bf847b719942f3) check unit types on action and notification creation - [`7b990f7`](https://github.com/go-gitea/gitea/commit/7b990f788b3c5ec0f0925ea0168f47439ae0e050) adjust test to take new permission checks into account ### 📊 Changes **24 files changed** (+545 additions, -72 deletions) <details> <summary>View changed files</summary> 📝 `integrations/api_repo_test.go` (+3 -3) 📝 `models/access_test.go` (+12 -4) 📝 `models/fixtures/repository.yml` (+13 -2) 📝 `models/fixtures/team.yml` (+1 -7) 📝 `models/fixtures/team_repo.yml` (+8 -2) ➕ `models/fixtures/team_unit.yml` (+209 -0) 📝 `models/fixtures/user.yml` (+1 -1) 📝 `models/migrations/migrations.go` (+2 -0) 📝 `models/migrations/v38.go` (+7 -2) ➕ `models/migrations/v69.go` (+80 -0) 📝 `models/models.go` (+1 -0) 📝 `models/notification.go` (+10 -0) 📝 `models/org.go` (+16 -1) 📝 `models/org_team.go` (+75 -11) 📝 `models/org_test.go` (+6 -6) 📝 `models/repo.go` (+5 -13) 📝 `models/repo_list_test.go` (+3 -3) 📝 `models/repo_watch.go` (+17 -0) 📝 `models/user.go` (+28 -10) 📝 `models/user_test.go` (+22 -0) _...and 4 more files_ </details> ### 📄 Description targets https://github.com/go-gitea/gitea/issues/4029 hides private organization repository issues from users that have no access to them. --- <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:29:29 -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#17206