Skip to content

Prevent account managers from reading admin users - #2523

Merged
tf merged 1 commit into
codevise:masterfrom
tf:user-policy-fix
Nov 4, 2026
Merged

tf merged 1 commit into
codevise:masterfrom
tf:user-policy-fix

Conversation

@tf

@tf tf commented Nov 4, 2026

Copy link
Copy Markdown
Member

UserPolicy#read? intersected the manager's accounts with the account scope of the managed user. For admins, that scope resolves to all accounts, so any account manager could view the show page of every admin user. Use the managed user's actual account memberships instead, matching UserPolicy::Scope.

UserPolicy#read? intersected the manager's accounts with the account
scope of the managed user. For admins, that scope resolves to all
accounts, so any account manager could view the show page of every
admin user. Use the managed user's actual account memberships
instead, matching UserPolicy::Scope.
@tf tf added this to the v17.3 milestone Nov 4, 2026
@tf
tf merged commit 7647dbe into codevise:master Nov 4, 2026
16 checks passed
@tf
tf deleted the user-policy-fix branch November 4, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant