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

Fix recursive group add #3288

Merged
merged 1 commit into from
Mar 28, 2023
Merged

Fix recursive group add #3288

merged 1 commit into from
Mar 28, 2023

Conversation

supercrafter100
Copy link
Member

During the installer, when groups were trying to get added to the admin account, the code would try to get all the groups of the user to check if it already had it. Because the user had no role yet at all, it tried to add the group with id 1 to the user, which in term tried to check the user their groups... This caused an infinite loop which ended up in the process running out of memory.

This PR fixes it by just using the local _groups variable and falling back to an empty array if its not yet assigned.

@tadhgboyle tadhgboyle merged commit c50e1c3 into develop Mar 28, 2023
@tadhgboyle tadhgboyle deleted the fix/user-group-add branch March 28, 2023 19:37
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