Anonymous View
Skip to content

Update visibilty for descendants#7218

Merged
akatsoulas merged 1 commit into
mozilla:mainfrom
akatsoulas:group-visible-to
Jan 30, 2026
Merged

Update visibilty for descendants#7218
akatsoulas merged 1 commit into
mozilla:mainfrom
akatsoulas:group-visible-to

Conversation

@akatsoulas

Copy link
Copy Markdown
Collaborator

No description provided.

@escattone escattone left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+wc

Comment thread kitsune/groups/admin.py

if "visible_to_groups" in form.base_fields:
if obj and not obj.is_root():
parent = obj.get_parent()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since visibility and visible_to_groups are determined by the root, I'm thinking maybe for both we should, instead of the parent, use root = obj.get_root() and use the root's groups? Effectively it ends up the same, but just thinking it might be more consistent.

@akatsoulas akatsoulas merged commit 266c891 into mozilla:main Jan 30, 2026
2 checks passed
@akatsoulas akatsoulas deleted the group-visible-to branch January 30, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants