Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

allow updating team permissions upon team creation or update #4865

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
Loading
from

Conversation

stohrendorf
Copy link
Contributor

@stohrendorf stohrendorf commented Apr 22, 2025

Description

Allows updating team permissions upon update and create requests, limited to the union of the requester's permissions unless the requester has ACCESS_MANAGEMENT permission.

DISCLAIMER: This is a bit out of my comfort zone, and I used AI to identify and fix issues. While I reviewed AI suggestions critically, I'm not really sure the changes are fine.

Addressed Issue

Closes #4787.
Closes #4791.
Related: #2358

Additional Details

Tests are probably incomplete. I'm not sure how to test this with a user with limited privileges.

Checklist

  • I have read and understand the contributing guidelines
  • This PR fixes a defect, and I have provided tests to verify that the fix is effective
  • This PR implements an enhancement, and I have provided tests to verify that it works as intended
  • This PR introduces new or alters existing behavior, and I have updated the documentation accordingly

@stohrendorf stohrendorf marked this pull request as draft April 23, 2025 10:16
Signed-off-by: Steffen Ohrendorf <steffen.ohrendorf@gmx.de>
@owasp-dt-bot
Copy link

owasp-dt-bot commented Apr 28, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.01% (target: -1.00%) 100.00% (target: 70.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (31eefe0) 24029 19363 80.58%
Head commit (2ab75a1) 24042 (+13) 19376 (+13) 80.59% (+0.01%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#4865) 17 17 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

@stohrendorf stohrendorf marked this pull request as ready for review April 28, 2025 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add the ability to pass permissions as a list Permissions not set in Team creation
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.