Skip to content

Commit

Permalink
fix: two typo (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
lnnt authored May 10, 2022
1 parent 5139e82 commit 1c2d379
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/rbac_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (s *Server) GetRolesForUser(ctx context.Context, in *pb.UserRoleRequest) (*
return &pb.ArrayReply{Array: res}, nil
}

// GetImplicitPermissionsForUser gets all permissions(including children) for a user or role.
// GetImplicitRolesForUser gets implicit roles that a user has.
func (s *Server) GetImplicitRolesForUser(ctx context.Context, in *pb.UserRoleRequest) (*pb.ArrayReply, error) {
e, err := s.getEnforcer(int(in.EnforcerHandler))
if err != nil {
Expand All @@ -42,7 +42,7 @@ func (s *Server) GetImplicitRolesForUser(ctx context.Context, in *pb.UserRoleReq
return &pb.ArrayReply{Array: res}, err
}

// GetUsersForRole gets the users that has a role.
// GetUsersForRole gets the users that have a role.
func (s *Server) GetUsersForRole(ctx context.Context, in *pb.UserRoleRequest) (*pb.ArrayReply, error) {
e, err := s.getEnforcer(int(in.EnforcerHandler))
if err != nil {
Expand Down

0 comments on commit 1c2d379

Please sign in to comment.