Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

chore: add built in organization roles to match site#13938

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 5 commits intomainfromstevenmasley/builtin_org_roles
Jul 19, 2024

Conversation

Emyrk
Copy link
Member

@EmyrkEmyrk commentedJul 18, 2024
edited
Loading

Added org user admin, org template admin, and org auditor

$ coder organizations roles showNAME                         DISPLAY NAME                 SITE PERMISSIONS  ORGANIZATION PERMISSIONS  USER PERMISSIONS  organization-admin           Organization Admin           0 permissions     33 permissions            0 permissions     organization-auditor         Organization Auditor         0 permissions     1 permissions             0 permissions     organization-template-admin  Organization Template Admin  0 permissions     10 permissions            0 permissions     organization-user-admin      Organization User Admin      0 permissions     11 permissions            0 permissions

Closes#13763

Added org user admin, org template admin, and org auditor
@EmyrkEmyrk marked this pull request as ready for reviewJuly 19, 2024 14:08
Comment on lines +453 to +457
Site:Permissions(map[string][]policy.Action{
// To assign organization members, we need to be able to read
// users at the site wide to know they exist.
ResourceUser.Type: {policy.ActionRead},
}),
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This needs to be fixed by only needing the org member read permission. ButExtractUser is currently used in organization routes, where an org member should probably be sufficient.

Comment on lines +391 to +395
Site:Permissions(map[string][]policy.Action{
// To assign organization members, we need to be able to read
// users at the site wide to know they exist.
ResourceUser.Type: {policy.ActionRead},
}),
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is unfortunate, but to add a user to an org, we need to know that user exists.

@EmyrkEmyrk requested a review fromf0sselJuly 19, 2024 17:55
@EmyrkEmyrk merged commit49d6d0f intomainJul 19, 2024
@EmyrkEmyrk deleted the stevenmasley/builtin_org_roles branchJuly 19, 2024 20:44
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJul 19, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@f0sself0sself0ssel approved these changes

Assignees

@EmyrkEmyrk

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Implement set of built in organizational roles

2 participants

@Emyrk@f0ssel

[8]ページ先頭

©2009-2025 Movatter.jp