Skip to content

Commit

Permalink
Fixed Namespace.login_required Python 2.x regression issue
Browse files Browse the repository at this point in the history
  • Loading branch information
frol committed Sep 27, 2016
1 parent 8a7892c commit 146037c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/extensions/api/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def decorator(func_or_class):

# This way we will avoid unnecessary checks if the decorator is
# applied several times, e.g. when Resource class is decorated.
func.__latest_oauth_decorator_id__ = id(decorator)
func.__dict__['__latest_oauth_decorator_id__'] = id(decorator)

# Automatically apply `permissions.ActivatedUserRolePermisson`
# guard if none is yet applied.
Expand Down

0 comments on commit 146037c

Please sign in to comment.