Skip to content

Commit d6af72b

Browse files
authored
Add note about AccessDeniedException being thrown
Fixes #16614
1 parent 3aa06f8 commit d6af72b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

controller/argument_value_resolver.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ In addition, some components and official bundles provide other value resolvers:
8888
with ``UserInterface``. Default value can be set to ``null`` in case
8989
the controller can be accessed by anonymous users. It requires installing
9090
the :doc:`SecurityBundle </security>`.
91+
92+
If the argument is not nullable and there is no logged in user or the logged in
93+
user has a user class not matching the type-hinted class, an ``AccessDeniedException``
94+
is thrown by the resolver to prevent access to the controller.
9195

9296
Adding a Custom Value Resolver
9397
------------------------------

0 commit comments

Comments
 (0)