forked from indymedia/epicyon
Domain permissions
parent
de5c637241
commit
d8ed70f7d2
2
utils.py
2
utils.py
|
@ -51,6 +51,8 @@ def domainPermitted(domain: str, federationList: []):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def urlPermitted(url: str, federationList: [],capability: str):
|
def urlPermitted(url: str, federationList: [],capability: str):
|
||||||
|
if url.endswith('gab.com'):
|
||||||
|
return False
|
||||||
if len(federationList)==0:
|
if len(federationList)==0:
|
||||||
return True
|
return True
|
||||||
for domain in federationList:
|
for domain in federationList:
|
||||||
|
|
Loading…
Reference in New Issue