ohcnetwork / care

Care is a Digital Public Good enabling TeleICU & Decentralised Administration of Healthcare Capacity across States.
https://careapi.ohc.network/swagger
MIT License
241 stars 282 forks source link

Add access control to live feed configs #1840

Open sainak opened 8 months ago

sainak commented 8 months ago

add access control checks while fetching camera configs and performing actions

rash-27 commented 7 months ago

I want to work on this. Can you please provide more information regarding the issue?

AnkurPrabhu commented 6 months ago

@sainak i can work on this issue. We need to make the routes available for specific roles right? Also which api is this ? If i can work then pls assign me the issue

AnkurPrabhu commented 6 months ago
Screenshot 2024-03-23 at 1 37 58 AM

@sainak you are talking about this feed right ? this calls operate_assets api from front-end and in the backend this api sits in AssetViewSet model, so just adding permissions classes to this model should solve access control right ? pls let me know if I am correct or misunderstood something

AnkurPrabhu commented 6 months ago

this is on hold until #1757 is done