Fix typo (period to comma)
parent
2950d5d574
commit
c631d98feb
|
@ -3,7 +3,7 @@
|
|||
View Based Authorization
|
||||
========================
|
||||
|
||||
Often a developer will want to show. hide or otherwise modify a UI based on the current user identity. You can access the authorization service within MVC views by injecting it. To inject the authorization service into a view you use the ``@inject IAuthorizationService AuthorizationService``. If you want the authorization service in every view the place the ``@inject`` keyword into the ``_ViewImports.cshtml`` file in the ``Views`` directory.
|
||||
Often a developer will want to show, hide or otherwise modify a UI based on the current user identity. You can access the authorization service within MVC views by injecting it. To inject the authorization service into a view you use the ``@inject IAuthorizationService AuthorizationService``. If you want the authorization service in every view the place the ``@inject`` keyword into the ``_ViewImports.cshtml`` file in the ``Views`` directory.
|
||||
|
||||
Once you have injected the authorization service you use it by calling the ``AuthorizeSync`` method in exactly the same way as you would check during :ref:`resource based authorization <security-authorization-resource-based-imperative>`.
|
||||
|
||||
|
|
Loading…
Reference in New Issue