Skip to content

Commit

Permalink
Ignore invalid classifications
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-sgaron committed Sep 24, 2021
1 parent adf6b49 commit fef8adf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assemblyline_ui/api/v4/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def who_am_i(**kwargs):
"allow_url_submissions": config.ui.allow_url_submissions,
"apps": [x for x in APPS_LIST['apps']
if CLASSIFICATION.is_accessible(kwargs['user']['classification'],
x['classification'] or CLASSIFICATION.UNRESTRICTED)],
x['classification'] or CLASSIFICATION.UNRESTRICTED,
ignore_invalid=True)],
"banner": config.ui.banner,
"banner_level": config.ui.banner_level,
"read_only": config.ui.read_only,
Expand Down

0 comments on commit fef8adf

Please sign in to comment.