I think i will use websockets, thanks for the advice. At moment i'm using callbacks only because can't do different.
Probably async/await will be available from the next version (I've read that too).
How can I get category's special users
I mean users I added one by one in category like below:
I just want to show these master users in home's categories list.
Robert last edited by
This post is deleted!
Those userrs are stored in groups with special names, here are the names assuming the category id is 1.
You can get the user ids from these groups by.
Groups.getMembers('cid:1:privileges:find', 0, -1, callback);This will give you all the user ids that have the find permission for category 1.
If you want to get their basic info like username picture slug so you can show user icons you can just use
Groups.getMemberUsers('cid:1:privileges:find', 0, -1, calllback);