mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 22:37:41 -02:30
Fixing up some pep8 issues
This commit is contained in:
@@ -107,8 +107,7 @@ class ModelAccessPermission(permissions.BasePermission):
|
||||
|
||||
# Check permissions for the given view and object, based on the request
|
||||
# method used.
|
||||
check_method = getattr(self, 'check_%s_permissions' % \
|
||||
request.method.lower(), None)
|
||||
check_method = getattr(self, 'check_%s_permissions' % request.method.lower(), None)
|
||||
result = check_method and check_method(request, view, obj)
|
||||
if not result:
|
||||
raise PermissionDenied()
|
||||
|
||||
Reference in New Issue
Block a user