8000 [Security] Add target user to SwitchUserListener decide() call · Issue #25091 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
8000
[Security] Add target user to SwitchUserListener decide() call #25091
Closed
@jwmickey

Description

@jwmickey
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Symfony version 3.3.x

Add target user as $object parameter to SwitchUserListener's decide() call. Providing the target user allows a security voter to fine-tune access control. For example, a user with the role ROLE_ACCOUNT_MANAGER could be allowed to switch to ROLE_CUSTOMER, without giving the account manager too much access.

PR forthcoming...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0