mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-26 20:48:40 +02:00
removed method to add has_profile_feature_flag to context, and reference
This commit is contained in:
parent
3a7044d31e
commit
44c911e320
2 changed files with 0 additions and 5 deletions
|
@ -242,7 +242,6 @@ TEMPLATES = [
|
||||||
"registrar.context_processors.is_production",
|
"registrar.context_processors.is_production",
|
||||||
"registrar.context_processors.org_user_status",
|
"registrar.context_processors.org_user_status",
|
||||||
"registrar.context_processors.add_path_to_context",
|
"registrar.context_processors.add_path_to_context",
|
||||||
"registrar.context_processors.add_has_profile_feature_flag_to_context",
|
|
||||||
"registrar.context_processors.portfolio_permissions",
|
"registrar.context_processors.portfolio_permissions",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
@ -54,10 +54,6 @@ def add_path_to_context(request):
|
||||||
return {"path": getattr(request, "path", None)}
|
return {"path": getattr(request, "path", None)}
|
||||||
|
|
||||||
|
|
||||||
def add_has_profile_feature_flag_to_context(request):
|
|
||||||
return {"has_profile_feature_flag": flag_is_active(request, "profile_feature")}
|
|
||||||
|
|
||||||
|
|
||||||
def portfolio_permissions(request):
|
def portfolio_permissions(request):
|
||||||
"""Make portfolio permissions for the request user available in global context"""
|
"""Make portfolio permissions for the request user available in global context"""
|
||||||
context = {
|
context = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue