Skip to content

Commit

Permalink
Include 'nav_' codenames in view only codenames
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanWillitts committed Jul 18, 2024
1 parent 55a1b71 commit 6a7b9e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion edc_auth/site_auths.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def is_view_codename(codename):
return (
"view_" in codename
or "view_historical" in codename
or "nav_" in codename
or "navbar" in codename
or "dashboard" in codename
)
Expand Down Expand Up @@ -221,7 +222,8 @@ def get_view_only_codenames(codenames):
If codename is a callable, wraps for a later call.
Does not remove `edc_navbar` and `edc_dashboard` codenames.
Does not remove `edc_navbar`, 'nav_' or `edc_dashboard`
codenames.
"""
callables = [lambda: view_only_wrapper(c) for c in codenames if callable(c)]
view_only_codenames = [
Expand Down

0 comments on commit 6a7b9e9

Please sign in to comment.