DMPRoadmap / roadmap

DCC/UC3 collaboration for a data management planning tool
MIT License
106 stars 109 forks source link

[ApiClients] Plan access rights #3220

Open benjaminfaure opened 2 years ago

benjaminfaure commented 2 years ago

Hello !

I am adding in DMP OPIDoR a feature allowing the user to manage which ApiClient has access to their plan. At the moment, ApiClients can only access plans created by them through the Plans API, so I've added a new form in the Share tab where the user can add & remove api clients accessing their plan.

Here's what's it looks like (in DMP OPIDoR colors !) :

image

Only "read" access is available but there's support for the "edit" access in the code.

I've added a new table in the database called api_client_roles inspired by the user's roles table :

api_rights2 drawio

I already did a presentation with Brian, John & Glenys but I'm posting this here for people that weren't available.

I'm currently working on this feature, so I haven't been able to gather feedback from my team yet. If you have some suggestions tell me :)

martaribeiro commented 2 years ago

Thank you @benjaminfaure It does look very good and useful. I would imagine, users would like this kind of control.