Prevents listing inactive users on member list (#792)#799
Prevents listing inactive users on member list (#792)#799engelgabriel merged 4 commits intoRocketChat:masterfrom gmsecrieru:master
Conversation
|
👍 |
|
@gmsecrieru you've tested your solution? I think this will not work. The field active of user's record is not sent from server to client. |
|
@gmsecrieru a possible solution for this would be to edit |
|
Thanks for your input and forgive me if my findings stated below are not correct as I am still learning/researching into our code base, but answering your comments: @rodrigok Yes, I've tested and it does work here: @marceloschmidt I think we do use inactive users at the moment. Check out the Admin's "Users" panel: |
|
@gmsecrieru When you are in the admin panel, once you select a user, it uses the |
|
@marceloschmidt I have created a third user (which is not admin) and performed the following tests using its account: Not sure if I am missing something or if we (even accidentally) already have this data on client somehow. I think I will be able to log into the Demo server in about an hour, maybe we can talk this through better! Thanks again! |
|
@gmsecrieru I see the problem. In fact, when you used |
|
@marceloschmidt Yes, it's there! For what it's worth, "george" is and Admin user, thus I don't know if that would reflect by any means in the result of "third.user" member list |
|
Ok! I'll give it a proper testing later on :) sorry for not doing it before. Marcelo Schmidt On Mon, Sep 14, 2015 at 3:14 PM, George Secrieru notifications@github.com
|
|
Take your time and thanks! |
|
My bad (and @rodrigok's), you were right! Since all your conditions belong to autocomplete filter settings, they are all run on server side, so they are right! This PR is ready for merge @engelgabriel. |
Prevents listing inactive users on member list (#792)






Should close #792