Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update expressions.rst #12132

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

Merged
merged 1 commit into from
Aug 15, 2019
Merged

Update expressions.rst #12132

merged 1 commit into from
Aug 15, 2019

Conversation

kevinreniers
Copy link
Contributor

@kevinreniers kevinreniers commented Aug 9, 2019

Clarify the difference between the is_anonymous function and IS_AUTHENTICATED_ANONYMOUSLY.
This fixes #11950.

@@ -56,7 +56,9 @@ Additionally, you have access to a number of functions inside the expression:
Returns ``true`` if the user is authenticated via "remember-me" or authenticated
"fully" - i.e. returns true if the user is "logged in".
``is_anonymous``
Equal to using ``IS_AUTHENTICATED_ANONYMOUSLY`` with the ``isGranted()`` function.
Returns ``true`` if the user is anonymous. That is, the firewall confirms that it
does not know this user's identity. This is different from ``IS_AUTHENTICATED_ANONYMOUSLY``,
Copy link
Contributor

Choose a reason for hiding this comment

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

What about renaming it to „IS_AUTHENTICATED_OR_ANONYMOUSLY“ to make it more clear and understandable?

cc @chalasr

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, but that seems like a topic for its own PR?

Copy link
Contributor

Choose a reason for hiding this comment

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

Absolutely this must be implemented int the code base first 👌🏻

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you @chalasr 👍

Could you approve this PR?

Copy link
Member

Choose a reason for hiding this comment

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

It's not ready yet! This PR is correct for lower versions anyways

Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

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

should apply on 3.4 if I'm not mistaken

Clarify the difference between the `is_anonymous` function and `IS_AUTHENTICATED_ANONYMOUSLY`.
@OskarStark OskarStark changed the base branch from 4.3 to 3.4 August 15, 2019 04:36
@OskarStark
Copy link
Contributor

Thank you Kevin.

@OskarStark OskarStark merged commit 6df9898 into symfony:3.4 Aug 15, 2019
OskarStark added a commit that referenced this pull request Aug 15, 2019
This PR was submitted for the 4.3 branch but it was merged into the 3.4 branch instead (closes #12132).

Discussion
----------

Update expressions.rst

Clarify the difference between the `is_anonymous` function and `IS_AUTHENTICATED_ANONYMOUSLY`.
This fixes #11950.

Commits
-------

6df9898 Update expressions.rst
@kevinreniers kevinreniers deleted the patch-1 branch August 15, 2019 09:29
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.

4 participants