absmach / magistrala

Industrial IoT Messaging and Device Management Platform

Home Page:https://www.abstractmachines.fr/magistrala.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature: Fail role update if user does not exist

arvindh123 opened this issue · comments

Is your feature request related to a problem? Please describe.

During update user role for non existence user id, doesn't fails in policy layer, Instead it fails in repo layer after adding policy in spiceDB them it rollback the policy.

Describe the feature you are requesting, as well as the possible use case(s) for it.

Instead of checking the user existence in repo layer, we should check user id is belongs to Magistrala Platform as member in policy layer( spiceDB).

Indicate the importance of this feature to you.

Should-have

Anything else?

No response