Thank you @baris !
For anyone else looking for the same, action:group.join and action:group.leave provide a single uid, and one or more group names (as array).
Have fun developing 😉
Group level permissions for uploaded files?
There's some mention of this previously (at the bottom of: Re: Make uploaded files private...?.
Basically is there any way to make uploaded files only accessible to members of a specific group? At the moment any registered user can access any uploaded file if they have the correct link.
Using: NodeBB v1.11.0.
Ah. This limitation is troubling me a lot....I'm surprised it doesn't trouble others...
Guess I'll just start investigating how to implement it myself.
Any pointers appreciated.
You haven't really described how this would work. Who can view who's uploaded files? What happens when multiple groups are involved?
No worries I can explain:
I've set up a category (Data Technology Team) that I only want one group (NTG Data Tech Team) to access:
I've set up permissions so only group members can access the private category:
I've created a post in the private category and uploaded an image into that post:
I can right click on that image and save a link to it's address:
If ANYBODY has that address they can access the picture.
I'd like to be able to tell users that only group members can access that picture, even if an unauthorised person discovers a link to it.
This extra level of security creates peace of mind when posting private material.
I guess it would be nice to have an extra column in the privileges configuration panel that allows/disallows access to uploads associated with each category. That way you can control which group(s) or users can access them.
(I noticed that the nodebb-plugin-poll adds an extra column in the privileges configuration section....maybe a plugin could solve this problem)
Otherwise, everything is perfect!
Ah well. I guess we can assume that this isn't a problem for most. I'm going to stick with NodeBB for public facing posts (It is a forum after all).
For sharing sensitive data I'm going to use other more secure platforms (Nextcloud).