Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Bailin He <[email protected]>
  • Loading branch information
bailinhe committed Apr 23, 2024
1 parent 41421b2 commit c7b2205
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/api/roles_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (r *Router) roleV2Update(c echo.Context) error {
return r.errorResponse("error creating resource", err)
}

if err := r.checkActionWithResponse(ctx, subjectResource, string(iapl.RoleActionGet), roleResource); err != nil {
if err := r.checkActionWithResponse(ctx, subjectResource, string(iapl.RoleActionUpdate), roleResource); err != nil {
return err
}

Expand Down
2 changes: 1 addition & 1 deletion internal/query/rolebindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ func (e *engine) UpdateRoleBinding(ctx context.Context, rb types.Resource, subje
}

// isRoleBindable checks if a role is available for a resource. a role is not
// be available to a resource if it is owner is not associated with the resource
// available to a resource if its owner is not associated with the resource
// in any way.
func (e *engine) isRoleBindable(ctx context.Context, role, res types.Resource) error {
req := &pb.CheckPermissionRequest{
Expand Down

0 comments on commit c7b2205

Please sign in to comment.