Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add creators of new groups as owners #9032

Open
wants to merge 1 commit into
base: roles-model
Choose a base branch
from

Conversation

seanh
Copy link
Contributor

@seanh seanh commented Oct 18, 2024

Depends on #9029.

Comment on lines +129 to +131
self.db.add(
GroupMembership(user_id=creator.id, group_id=group.id, roles=["owner"])
)
Copy link
Contributor Author

@seanh seanh Oct 18, 2024

Choose a reason for hiding this comment

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

I don't know if there's any way to pass through the roles=["owners"] when appending the membership via the group.members relationship? So constructing the GroupMembership object directly instead.

@seanh seanh marked this pull request as ready for review October 18, 2024 16:46
@seanh seanh changed the base branch from main to roles-model October 18, 2024 16:47
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.

1 participant