@kadmy glad you got it working. We'll have to investigate to see if we can reproduce with node 16
Any api to get list of categories based on group
Moved Technical Support
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.
I created a group called
category_ownerand 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
How can I get that list?
is there any api to get those list?
PitaJ Global Moderator Plugin & Theme Devreplied to venkAT on last edited by PitaJ
@venkat just to confirm, you want a list of categories which a given group has access to?
PitaJ Global Moderator Plugin & Theme Dev
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');
Copyright © 2023 NodeBB | Contributors