@baris said in Question About Popular Searches API:
Not on my immediate plans, maybe after 3.x release.
Gotcha, thanks again!
@baris
In nodebb privileges section we can add the group for a particular category
so, Is there any api to get those category list which is having a particular group.
Example:
I created a group called category_owner
and under privileges section, I added this group for some categories and gave some privileges.
Now I want that category list which is having that group category_owner
.
How can I get that list?
is there any api to get those list?
Thanks.
@venkat just to confirm, you want a list of categories which a given group has access to?
There's no ready made API for this, but you can try the following:
const allCids = await Categories.getAllCidsFromSet('categories:cid');
const groupCids = await privileges.categories.filterCids('topics:create', allCids, 'groupName');