Fix typo (period to comma)

pull/851/merge
Kevin Pilch-Bisson 2015-12-30 16:35:46 -08:00 committed by Sourabh Shirhatti
parent 2950d5d574
commit c631d98feb
1 changed files with 1 additions and 1 deletions

View File

@ -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>`.