Removed duplicated code

This commit is contained in:
Camilo Nova 2019-01-11 12:43:11 -05:00
parent fc34d18404
commit e1bfc7d1fe

View file

@ -156,9 +156,6 @@ def is_user_lockable(request, credentials=None):
If so, then return the value to see if this user is special
and doesn't get their account locked out
"""
if hasattr(request.user, 'nolockout'):
return not request.user.nolockout
if request.method != 'POST':
return True