Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting a comment creator's name through webservice
#1
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?
Reply
#2
Have you tried this method:

http://corebos.org/documentation/doku.ph...s#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.
Joe
TSolucio
Reply
#3
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)
Reply
#4
Accepted. Thanks!!
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)