You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/permission.rst
+2-2
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ The permission manager must be a function that looks like this:
41
41
42
42
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.
43
43
44
-
If permission is denied I recommand to raise exception like that:
44
+
If permission is denied I recommend to raise exception like that:
45
45
46
46
.. code-block:: python
47
47
@@ -83,4 +83,4 @@ Example:
83
83
api = Api()
84
84
api.init_app(app)
85
85
api.permission_manager(permission_manager) # initialize permission system first
86
-
api.oauth_manager(oauth2) # initialize oauth support second
86
+
api.oauth_manager(oauth2) # initialize oauth support second
0 commit comments