mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix E713 test for membership should be 'not in'
Related: https://pagure.io/freeipa/issue/8306 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
@@ -341,7 +341,7 @@ class WSGIExecutioner(Executioner):
|
||||
command = None
|
||||
|
||||
e = None
|
||||
if not 'HTTP_REFERER' in environ:
|
||||
if 'HTTP_REFERER' not in environ:
|
||||
return self.marshal(result, RefererError(referer='missing'), _id)
|
||||
if not environ['HTTP_REFERER'].startswith('https://%s/ipa' % self.api.env.host) and not self.env.in_tree:
|
||||
return self.marshal(result, RefererError(referer=environ['HTTP_REFERER']), _id)
|
||||
|
||||
Reference in New Issue
Block a user