Use new security.authorization_checker service

Replace deprecated `security.context` with the `security.authorization_checker` service.
Use denyAccessUnlessGranted shortcut
bug #4699 Use new security.authorization_checker service (xelaris)

This PR was merged into the 2.6 branch.

Discussion
----------

Use new security.authorization_checker service

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

Replace deprecated `security.context` with the `security.authorization_checker` service.

Commits
-------

58f4a00 Use denyAccessUnlessGranted shortcut
8ded86a Use new security.authorization_checker service