Sfoglia il codice sorgente

[Security] Fixed typo

Artur Kotyrba 14 anni fa
parent
commit
2682bc2be5

+ 2 - 4
src/Symfony/Component/Security/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php

@@ -18,13 +18,11 @@ use Symfony\Component\Security\Authentication\Token\TokenInterface;
  */
 
 /**
- * Processes a pre-authenticated authentication request. The request will
- * typically originate from a {@link org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter}
- * subclass.
+ * Processes a pre-authenticated authentication request.
  *
  * This authentication provider will not perform any checks on authentication
  * requests, as they should already be pre-authenticated. However, the
- * AuthenticationUserDetailsService implementation may still throw a UsernameNotFoundException, for example.
+ * UserProviderInterface implementation may still throw a UsernameNotFoundException, for example.
  *
  * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  */

+ 1 - 1
src/Symfony/Component/Security/Authorization/AccessDecisionManager.php

@@ -185,7 +185,7 @@ class AccessDecisionManager implements AccessDecisionManagerInterface
         }
 
         if ($grant > $deny) {
-            return;
+            return true;
         }
 
         if ($deny > $grant) {