Commit 53ee32c
committed
Use per-request ownership-role override in remove-member and member-role
RemoveMemberService and UpdateMemberRoleService read the required ownership
role from conf.ownershipRole() directly, ignoring the per-team
override-accounts-ownership-role attached param that RequestOverrides
resolves. Every other accounts service (InviteService, and the new
TeamService / GetTeamsService POST path) already goes through
RequestOverrides.ownershipRole(req, conf); align these two so multi-team
deployments that override the ownership role per team authorize these two
endpoints against the right role.
Pure superset: with no override attached, RequestOverrides.ownershipRole
falls back to conf.ownershipRole(), so single-tenant behavior is unchanged.1 parent 6df8606 commit 53ee32c
2 files changed
Lines changed: 4 additions & 2 deletions
File tree
- accounts/src/main/java/org/restheart/accounts
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
83 | | - | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
85 | | - | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
0 commit comments