mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-13 14:08:33 +03:00
adds todos
This commit is contained in:
@@ -121,6 +121,7 @@ def get_user_group_names(db: Session, email: str) -> list[str]:
|
|||||||
"""
|
"""
|
||||||
given an email retrieves the user groups from the DB and then the email-domain groups from a global variable, the email does not need to belong to an existing user.
|
given an email retrieves the user groups from the DB and then the email-domain groups from a global variable, the email does not need to belong to an existing user.
|
||||||
"""
|
"""
|
||||||
|
#TODO: the read: [group1, group2] permissions don't currently work
|
||||||
if not email or not len(email) or "@" not in email: return []
|
if not email or not len(email) or "@" not in email: return []
|
||||||
|
|
||||||
# get user groups
|
# get user groups
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ Redis = get_redis()
|
|||||||
|
|
||||||
USER_GROUPS_FILENAME = settings.USER_GROUPS_FILENAME
|
USER_GROUPS_FILENAME = settings.USER_GROUPS_FILENAME
|
||||||
|
|
||||||
# PATCHES for new aa's functionality
|
# TODO: these are temporary PATCHES for new aa's functionality
|
||||||
# logger.add("app/worker/worker_log.log", level="DEBUG")
|
# logger.add("app/worker/worker_log.log", level="DEBUG")
|
||||||
logger.remove = lambda x: print(f"logger.remove({x})")
|
logger.remove = lambda x: print(f"logger.remove({x})")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user