Skip to content

Commit b2328c2

Browse files
committed
Enable promo-based Piwigo groups
1 parent efaa64a commit b2328c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/utils/auth/providers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ def get_userinfo(self, user: models_users.CoreUser) -> dict[str, Any]:
176176
return {
177177
"sub": user.id,
178178
"name": user.full_name,
179-
"groups": [group.name for group in user.groups] + [user.account_type.value],
179+
"groups": [group.name for group in user.groups]
180+
+ [user.account_type.value]
181+
+ [str(user.promo)],
180182
"email": user.email,
181183
}
182184

0 commit comments

Comments
 (0)