Docs: note User-Member Linking enforcement in code
- update_user restricted via ActorIsAdmin; Form gates Member-Linking UI
This commit is contained in:
parent
cf6bd4a6a1
commit
f0134f00ee
1 changed files with 2 additions and 0 deletions
|
|
@ -2002,6 +2002,8 @@ Users and Members are separate entities that can be linked. Special rules:
|
||||||
- A user cannot link themselves to an existing member
|
- A user cannot link themselves to an existing member
|
||||||
- A user CAN create a new member and be directly linked to it (self-service)
|
- A user CAN create a new member and be directly linked to it (self-service)
|
||||||
|
|
||||||
|
**Enforcement:** The User resource restricts the `update_user` action (which accepts the `member` argument for link/unlink) to admins only via `Mv.Authorization.Checks.ActorIsAdmin`. The UserLive.Form shows the Member-Linking UI and runs member link/unlink on save only when the current user is admin; non-admins use the `:update` action (email only) for profile edit.
|
||||||
|
|
||||||
### Approach: Separate Ash Actions
|
### Approach: Separate Ash Actions
|
||||||
|
|
||||||
We use **different Ash actions** to enforce different policies:
|
We use **different Ash actions** to enforce different policies:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue