CoreBOSBB

Full Version: Getting a comment creator's name through webservice
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I know normally we don't have access to a user's name (other than the current user) through webservice, but I ran into a problem here. I want to display salesorders and the comments made on them. I can do this, but I can't get the creator's name (only the ID). Permission is denied to get the creator's first and last name, but I'd still like to show it. Is there a way to do this?
Have you tried this method:

http://corebos.org/documentation/doku.php?id=en:devel:corebosws:getrelatedrecords#comments

?

One idea that comes to mind is to connect as an admin user to launch the query, that may work....

Let me know how the getrelatedrecords works, I think I would enhance that method to accomplish what you are trying to do.
Thanks! Didn't know about that one but sadly it gives me the same results. I could try as you suggested to alter the getRelatedModule method to include the user's first and last name

I've sent you a PR with the change that I've tested (and works)
Accepted. Thanks!!