Handle Permissions update for a company
- Antar client should be able to update a company on Antar for the following fields :
-
data_levelandpermissionswith the following limited value (create constants for that)
Possible values reference
So fields permission, data_level and feature are standard to all of our systems.
Here is the possibles values reference for each fields :
-
permissionfield:Permission Meaning READ_ONLY ✅ Can read data (useful when a client does not pay anymore, or for demo) for every routes. User can also POSTdata but we will not trigger IDS, and let data stay in a "WAITING_FOR_PROCESS" mode no PATCH or DELETE.ACCESS:ENDPOINT Can read ( GET) every data (campaign + endpoints) and write (POST+PATCH+DELETE) data onendpointsroutes anddocumentsroutes only (but endpoint id only will be handled, we must return 403 if user try to send acampaignorcampaignUid)ACCESS:PROMO Can read ( GET) every data (campaign + endpoints) and write (POST+PATCH+DELETE) every data (campaign + endpoints),INTERNAL Can read and write data for every company on every routes -
data_levelfield:Level Meaning NO_PRODUCT ✅ No productobject initemsarray of object, meaning no sigyn / brands data (Short format of course)FULL All the data, no restriction (Short format of course)