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 an unassign action for roles#16728

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
aslilac merged 3 commits intomainfromlilac/action-unassign
Feb 27, 2025
Merged

Conversation

aslilac
Copy link
Member

currently, we useActionDelete to determine whether you can unassign a role, which is terrible, because we also use that to determine if you can delete the role itself.

there is more cleanup to do here, like renaming the roles resources to not start withassign_, but this change means that we can removeorganization_role.delete from org user admins, which fixes a UI bug. this was a lot of work to fix a single button, but it needed to be done anyway. 😅

Copy link
Member

@EmyrkEmyrk left a comment

Choose a reason for hiding this comment

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

Just 1 nit 👍

func (q *querier) CustomRoles(ctx context.Context, arg database.CustomRolesParams) ([]database.CustomRole, error) {
if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceAssignRole); err != nil {
roleObject := rbac.ResourceAssignOrgRole
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
roleObject:=rbac.ResourceAssignOrgRole
roleObject:=rbac.ResourceAssignRole

@aslilacaslilac merged commit91a4a98 intomainFeb 27, 2025
35 checks passed
@aslilacaslilac deleted the lilac/action-unassign branchFebruary 27, 2025 17:39
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsFeb 27, 2025
@stirby
Copy link
Collaborator

/cherry-pick release/2.20

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@EmyrkEmyrkEmyrk approved these changes

Assignees

@aslilacaslilac

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@aslilac@stirby@Emyrk

[8]ページ先頭

©2009-2025 Movatter.jp