Open
Description
To replicate:
- Create a user without an admin scope
- Try deleting some other user
This happens because we have two instances of the security dependency. The first one, which is the one that is effective, is in the core router layer:
sed-backend/apps/core/router.py
Line 19 in 9c46d43
The second instance is in the router end-point definition:
sed-backend/apps/core/users/router.py
Line 49 in 9c46d43
The second one does not have an effect. This error is present in multiple places. We need another method for asserting scoped permissions.