-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fixes (?) #25538 Fixes https://codeberg.org/forgejo/forgejo/issues/972 Regression #23879 #23879 introduced a change which prevents read access to packages if a user is not a member of an organization. That PR also contained a change which disallows package access if the team unit is configured with "no access" for packages. I don't think this change makes sense (at the moment). It may be relevant for private orgs. But for public or limited orgs that's useless because an unauthorized user would have more access rights than the team member. This PR restores the old behaviour "If a user has read access for an owner, they can read packages". --------- Co-authored-by: Giteabot <[email protected]>
- Loading branch information
Showing
8 changed files
with
385 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1258,3 +1258,77 @@ | |
repo_admin_change_team_access: false | ||
theme: "" | ||
keep_activity_private: false | ||
|
||
- | ||
id: 35 | ||
lower_name: private_org35 | ||
name: private_org35 | ||
full_name: Private Org 35 | ||
email: [email protected] | ||
keep_email_private: false | ||
email_notifications_preference: enabled | ||
passwd: ZogKvWdyEx:password | ||
passwd_hash_algo: dummy | ||
must_change_password: false | ||
login_source: 0 | ||
login_name: private_org35 | ||
type: 1 | ||
salt: ZogKvWdyEx | ||
max_repo_creation: -1 | ||
is_active: true | ||
is_admin: false | ||
is_restricted: false | ||
allow_git_hook: false | ||
allow_import_local: false | ||
allow_create_organization: true | ||
prohibit_login: false | ||
avatar: avatar35 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 0 | ||
num_teams: 1 | ||
num_members: 1 | ||
visibility: 2 | ||
repo_admin_change_team_access: false | ||
theme: "" | ||
keep_activity_private: false | ||
|
||
- | ||
id: 36 | ||
lower_name: limited_org36 | ||
name: limited_org36 | ||
full_name: Limited Org 36 | ||
email: [email protected] | ||
keep_email_private: false | ||
email_notifications_preference: enabled | ||
passwd: ZogKvWdyEx:password | ||
passwd_hash_algo: dummy | ||
must_change_password: false | ||
login_source: 0 | ||
login_name: limited_org36 | ||
type: 1 | ||
salt: ZogKvWdyEx | ||
max_repo_creation: -1 | ||
is_active: true | ||
is_admin: false | ||
is_restricted: false | ||
allow_git_hook: false | ||
allow_import_local: false | ||
allow_create_organization: true | ||
prohibit_login: false | ||
avatar: avatar22 | ||
avatar_email: [email protected] | ||
use_custom_avatar: false | ||
num_followers: 0 | ||
num_following: 0 | ||
num_stars: 0 | ||
num_repos: 0 | ||
num_teams: 2 | ||
num_members: 2 | ||
visibility: 1 | ||
repo_admin_change_team_access: false | ||
theme: "" | ||
keep_activity_private: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.