Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional User check in voter class #5580

Merged
merged 1 commit into from
Jul 29, 2015

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Jul 29, 2015

Finishes #5317

Q A
Doc fix? yes
New docs? no
Applies to 2.3+
Fixed tickets #5279

@@ -133,6 +134,13 @@ edit a particular object. Here's an example implementation::
return VoterInterface::ACCESS_DENIED;
}

// double-check that the User object is the expected entity.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double-check

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no comment in this code block starts with a capitialized word. Let's fix this inconsistenty in another PR if we really care, ok?

@xabbuh
Copy link
Member

xabbuh commented Jul 29, 2015

👍

@wouterj wouterj merged commit 9ad9daf into symfony:2.3 Jul 29, 2015
wouterj added a commit that referenced this pull request Jul 29, 2015
This PR was merged into the 2.3 branch.

Discussion
----------

Additional User check in voter class

Finishes #5317

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3+
| Fixed tickets | #5279

Commits
-------

9ad9daf Additional little check to show how we're assumign the User object is the User entity
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.

3 participants