Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
satwikkansal authored Jan 22, 2020
1 parent d32f547 commit 45c9a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/permission.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The permission manager must be a function that looks like this:

Flask-REST-JSONAPI use a decorator to check permission for each method named has_permission. You can provide args and kwargs to this decorators so you can retrieve this args and kwargs in the permission_manager. The default usage of the permission system does not provides any args or kwargs to the decorator.

If permission is denied I recommand to raise exception like that:
If permission is denied I recommend to raise exception like that:

.. code-block:: python
Expand Down Expand Up @@ -83,4 +83,4 @@ Example:
api = Api()
api.init_app(app)
api.permission_manager(permission_manager) # initialize permission system first
api.oauth_manager(oauth2) # initialize oauth support second
api.oauth_manager(oauth2) # initialize oauth support second

0 comments on commit 45c9a25

Please sign in to comment.