Added remote library scanning logic end endpoint

This commit is contained in:
Eliot Berriot 2018-04-08 13:35:37 +02:00
parent 836e813955
commit 097707dec4
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
8 changed files with 243 additions and 6 deletions

View file

@ -36,7 +36,7 @@ def clean_acct(acct_string, ensure_local=True):
raise forms.ValidationError(
'Invalid hostname {}'.format(hostname))
if username not in actors.SYSTEM_ACTORS:
if ensure_local and username not in actors.SYSTEM_ACTORS:
raise forms.ValidationError('Invalid username')
return username, hostname