Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Giving only certain users access to a category using the API V2

I am trying to use the V2 api to make a category available only to certain users of the forum.
For this I think I have to create a role, add the users I want to view that category to that role, and set the read/write permissions on that role for that category.

  1. Does anyone have an example on how to do this using the API?

  2. Does anyone know another way to do this that can also be done using the API?

The problem is that the documentation doesn't have any example for this and is not very clear on how to do this.
In there is a permissions array, but I'm not sure what it should contain.
From the Model I understand it's a PermissionFragment that has
permissions* {

But again it's not very specific regarding the permissions format. has even less information.

I noticed the v1 api you could set permissions directly for a category but I want to host the forum myself and v1 is only for the hosted solution.

I also you can set a group for a category, but I couldn't find any group functionality like describe in the documentation so I'm guessing it's a hosted only plugin.


Sign In or Register to comment.