mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Added further checking on log additions
This commit is contained in:
@@ -68,7 +68,7 @@ class CachedDocumentManager(models.Manager):
|
|||||||
cached_doc.cached_until = dom.getElementsByTagName('cachedUntil')[0].childNodes[0].nodeValue
|
cached_doc.cached_until = dom.getElementsByTagName('cachedUntil')[0].childNodes[0].nodeValue
|
||||||
|
|
||||||
# If this is user related, write a log instance
|
# If this is user related, write a log instance
|
||||||
if params and 'userID' in params:
|
if params and 'userID' in params and params['userID'].isdigit():
|
||||||
log = ApiAccessLog()
|
log = ApiAccessLog()
|
||||||
log.userid = params['userID']
|
log.userid = params['userID']
|
||||||
log.service = service
|
log.service = service
|
||||||
|
|||||||
Reference in New Issue
Block a user