fablabbcn / smartcitizen-api

The Smart Citizen Engine
https://developer.smartcitizen.me
GNU Affero General Public License v3.0
10 stars 4 forks source link

Add `role_mask` for setting tags #237

Open oscgonfer opened 1 year ago

oscgonfer commented 1 year ago

To discuss still, but we have found the case in which tags are populated by extraneous devices, in both internal testing and external projects. The idea of the tags, in principle, is twofold: to aggregate devices with similar purpose freely, but to also filter out the rest to be able to monitor them cleanly.

Could we add a role_mask - tag relationship so that only users with higher role than the mask can add devices to it? In general, all tags would have a 0 mask, but like this we could filter out most of the devices, while still allowing projects that need to monitor the status of devices in a clean way.