Admin approval
-
@tgezginis It looks like this feature is set up to be added in future versions of NodeBB.
In the mean time, you can do the following to do what you want:- Create a new group called
Authorized
or something - In the category section in the ACP, configure the
Access Control
on the categories to only allow users in theAuthorized
group to create topics and reply to topics. - When a new user signs up, authorize them by adding them to the
Authorized
group
- Create a new group called
-
@pitaj said:
@tgezginis It looks like this feature is set up to be added in future versions of NodeBB.
In the mean time, you can do the following to do what you want:- Create a new group called
Authorized
or something - In the category section in the ACP, configure the
Access Control
on the categories to only allow users in theAuthorized
group to create topics and reply to topics. - When a new user signs up, authorize them by adding them to the
Authorized
group
It's nice solution, but we have ~3.000 users. It will be hard work.
I'm working on new plugin. (https://github.com/tgezginis/nodebb-plugin-approval) It's only add user to non-approved group and remove from registered-users group on signup. But when I want to approve user I can't add to registered-users group. I have to solve this problem. If someone want to help me, please pull-request with commits.
- Create a new group called
-
@tgezginis said:
It's only add user to non-approved group and remove from registered-users group on signup
'registered-users' it's a system group(hidden group)
AFAIK you should never remove users from it and I'm pretty sure there is another way to get exactly what you want, while avoiding removing users from this group. -
I'd also be against removing users from the
registered-users
group. Having your plugin add a new system group calledapproved-users
would be ideal. To get a list of users awaiting approval (for showing in the ACP page, for example), you could do a diff of the registered users group against the approved users group (using this redis method, for example). I don't believe our DBAL supportsSDIFF
yet, but we can add it for you if you'd like. -
@julian said:
To get a list of users awaiting approval
I'd propose create two groups
- approved-users
- non-approved-users
obviously when you're adding users to approved, you have to remove them from non-approved
so getting a list of users will be much easier and faster than redis SDIFF and etc -
@Mega said:
@julian said:
To get a list of users awaiting approval
I'd propose create two groups
- approved-users
- non-approved-users
obviously when you're adding users to approved, you have to remove them from non-approved
so getting a list of users will be much easier and faster than redis SDIFF and etcI haven't experience with nodejs and NodeBB so I can not proceed. If you can contribute the plugin, I'll be happy. This plugin provide many people's problem.
-
@tgezginis said:
I haven't experience with nodejs and NodeBB so I can not proceed. If you can contribute the plugin, I'll be happy. This plugin provide many people's problem.
Okay, I'll try to help you to develop this plugin. I can start today
Go PM. -
@tgezginis While you was ignoring me in PM and I was in doubt, whether it worth to develop the plugin as my own plugin, without you, @pichalite already wrote the plugin!