1
0
Fork 0

Compare commits

...

2 Commits

Author SHA1 Message Date
Daniel Herrmann 53631f5d09 fix(teams): fix duplicate teams being shown when 2024-03-10 16:03:22 +01:00
waza-ari 4bb1d5edfc fix(docs): openid docs whitespace formatting (#2186)
Co-authored-by: Daniel Herrmann <daniel.herrmann1@gmail.com>
Reviewed-on: vikunja/vikunja#2186
Reviewed-by: konrad <k@knt.li>
Co-authored-by: waza-ari <daniel.herrmann@makerspace-darmstadt.de>
Co-committed-by: waza-ari <daniel.herrmann@makerspace-darmstadt.de>
2024-03-10 14:43:04 +00:00
2 changed files with 5 additions and 5 deletions

View File

@ -64,7 +64,7 @@ auth:
redirecturl: https://vikunja.mydomain.com/auth/openid/ <---- slash at the end is important
providers:
- name: <provider-name>
authurl: <auth-url> <----- Used for OIDC Discovery, usually the issuer
authurl: <auth-url> <----- Used for OIDC Discovery, usually the issuer
clientid: <vikunja client-id>
clientsecret: <vikunja client-secret>
scope: openid profile email
@ -116,7 +116,7 @@ The minimal claim structure expected by Vikunja is as follows:
}
```
It also also possible to pass the description and isPublic flag as optional parameter. If not present, the description will be empty and project visibility defaults to false.
It is also possible to pass the `description` and the `isPublic` flag as optional parameters. If not present, the description will be empty and project visibility defaults to false.
```json
{
@ -124,8 +124,8 @@ It also also possible to pass the description and isPublic flag as optional para
{
"name": "team 3",
"oidcID": 33349,
"description": "My Team Description",
"isPublic": true
"description": "My Team Description",
"isPublic": true
},
]
}

View File

@ -308,7 +308,7 @@ func (t *Team) ReadAll(s *xorm.Session, a web.Auth, search string, page int, per
builder.Eq{"teams.is_public": true},
builder.Eq{"team_members.user_id": a.GetID()},
),
)
).Distinct("teams.id")
} else {
query = query.Where("team_members.user_id = ?", a.GetID())
}