Skip to content

[Security] Outdated docs for security voters #21093

@crtl

Description

@crtl

API for voters was changed but this change is not reflected in the documentation of:
How to Use Voters to Check User Permissions > The Voter Interface
https://symfony.com/doc/8.0/security/voters.html#the-voter-interface.

The code samples still show and reference the old voter api but supports and voteOnAttribute were removed.

The docs also dont mention that you can inject controller arguments into your voter by referencing the argument name in the IsGranted::subject argument but from the examples you can deduce that it is.
https://symfony.com/doc/8.0/security/voters.html#setup-checking-for-access-in-a-controller

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy