How can I get an user's properities via javascript?


(SMHassanAlavi) #1

I know getting the current user’s properities can be done by typing :
Discourse.User.currentProp(the properity);
but what should I do if I want to get the data from a user that he is NOT the current user?
Is there any function that give the username and the properity and returns the result I want?