Skip to content

Commit

Permalink
lint plus migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-kennedy-ecs committed Jul 25, 2024
1 parent 784b005 commit 06a5803
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/registrar/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def add_path_to_context(request):
def add_has_profile_feature_flag_to_context(request):
return {"has_profile_feature_flag": flag_is_active(request, "profile_feature")}


def portfolio_permissions(request):
"""Make portfolio permissions for the request user available in global context"""
try:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Generated by Django 4.2.10 on 2024-07-25 12:45

import django.contrib.postgres.fields
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("registrar", "0113_user_portfolio_user_portfolio_additional_permissions_and_more"),
]

operations = [
migrations.AlterField(
model_name="user",
name="portfolio_additional_permissions",
field=django.contrib.postgres.fields.ArrayField(
base_field=models.CharField(
choices=[
("view_all_domains", "View all domains and domain reports"),
("view_managed_domains", "View managed domains"),
("view_member", "View members"),
("edit_member", "Create and edit members"),
("view_all_requests", "View all requests"),
("view_created_requests", "View created requests"),
("edit_requests", "Create and edit requests"),
("view_portfolio", "View organization"),
("edit_portfolio", "Edit organization"),
],
max_length=50,
),
blank=True,
help_text="Select one or more additional permissions.",
null=True,
size=None,
),
),
]

0 comments on commit 06a5803

Please sign in to comment.