How to create a new user role and its permissions

Hello how are you?

I have a question, I have seen that peertube has three default roles. Is it possible to add a new one, along with its respective permissions and restrictions?

If possible, how would it be programmed?

1 « J'aime »

Hello,

No sorry it’s not possible yet.

Thanks for the reply.

Nor can it be done by programming or by creating a plugin?

1 « J'aime »

You can always modify the code (a.k.a. programming), but there is no API listed allowing a plugin to modify roles and permissions at the moment, c.f. PeerTube documentation

there is a file

PeerTube/shared/core-utils/users/user-role.ts

This can be modified to add new roles, do you also have to make more moifications at the code level?

1 « J'aime »