From 1335ae13e8a867039babbae90821ea3c33aefd22 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sat, 2 Mar 2024 16:40:08 +0100 Subject: [PATCH] Add permissions to new users from external signin --- back/src/Kyoo.Authentication/Views/AuthApi.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/back/src/Kyoo.Authentication/Views/AuthApi.cs b/back/src/Kyoo.Authentication/Views/AuthApi.cs index 892740f0..d3a264d3 100644 --- a/back/src/Kyoo.Authentication/Views/AuthApi.cs +++ b/back/src/Kyoo.Authentication/Views/AuthApi.cs @@ -193,6 +193,7 @@ namespace Kyoo.Authentication.Views newUser.Username = username; newUser.Slug = Utils.Utility.ToSlug(newUser.Username); newUser.ExternalId.Add(provider, extToken); + newUser.Permissions = options.NewUser; User? user = await users.GetByExternalId(provider, extToken.Id); if (user == null)