Skip to content

Fix first user owner assignment on OIDC login#480

Open
drifterza wants to merge 1 commit intotale:mainfrom
drifterza:fix/issue-266-owner-assignment
Open

Fix first user owner assignment on OIDC login#480
drifterza wants to merge 1 commit intotale:mainfrom
drifterza:fix/issue-266-owner-assignment

Conversation

@drifterza
Copy link
Contributor

Fixes #266

The insert was using onConflictDoNothing() so existing user records with caps=0 never got promoted to owner.

Changed to use onConflictDoUpdate() when no owner exists.

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.

Automated ownership permissions need to be reworked

1 participant