Skip to content

Commit

Permalink
FIX: fe-config errs if there is no context in configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
milung committed Jan 19, 2024
1 parent 6f04144 commit c501383
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion controller/sources/fe_config/fe_config.pl
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,10 @@

filter_by_roles(Config, UserRoles, Filtered) :-
is_dict(Config),
Contexts = Config.get(contexts),
( Contexts = Config.get(contexts)
-> true
; Contexts = []
),
filter_by_roles(Contexts, UserRoles, FilteredContexts),
Filtered0 = Config.put(contexts, FilteredContexts),
Navigations = Filtered0.get(apps),
Expand Down

0 comments on commit c501383

Please sign in to comment.