Skip to content

Commit

Permalink
fix: GetUsersForRole (#53)
Browse files Browse the repository at this point in the history
Signed-off-by: guanz42 <[email protected]>
  • Loading branch information
guanz42 authored Sep 30, 2021
1 parent 2a171ab commit aba3890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/rbac_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (s *Server) GetUsersForRole(ctx context.Context, in *pb.UserRoleRequest) (*
return &pb.ArrayReply{}, err
}

res, _ := e.GetModel()["g"]["g"].RM.GetUsers(in.User)
res, _ := e.GetModel()["g"]["g"].RM.GetUsers(in.Role)

return &pb.ArrayReply{Array: res}, nil
}
Expand Down

0 comments on commit aba3890

Please sign in to comment.