Implement policy parsing and add batch_id to rules
This commit is contained in:
@@ -118,6 +118,7 @@ def parse_source(user, query_params, raise_error=False):
|
||||
if source:
|
||||
sources = [source]
|
||||
else:
|
||||
print("NOT SOURCE")
|
||||
sources = list(settings.MAIN_SOURCES)
|
||||
if user.has_perm("core.restricted_sources"):
|
||||
for source_iter in settings.SOURCES_RESTRICTED:
|
||||
|
||||
Reference in New Issue
Block a user