Skip to content

Commit

Permalink
fixed a pylint issue in missing_permissions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksMat authored and atodorov committed Oct 8, 2019
1 parent 2220911 commit ff986d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kiwi_lint/missing_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ def _check_for_missing_decorator(self, node):
if decorator.func.name == 'permission_required':
found_permissions_required = True
break
elif decorator.func.name == 'method_decorator' and \
if decorator.func.name == 'method_decorator' and \
isinstance(decorator.args[0], astroid.Call) and \
decorator.args[0].func.name == 'permission_required':
found_permissions_required = True
break
Expand Down

0 comments on commit ff986d8

Please sign in to comment.