vikunja/pkg/models
waza-ari d69fc28125 fix(openid): OIDC teams should not have admins (#2161)
This PR fixes an issue discussed in #2152. Before this PR, the user who triggered team creation automatically got the admin flag set for this group, which makes perfect sense for the normal UI workflow. OIDC managed teams cannot be edited in Vikunja, and they're created automatically by the first user logging in having this team assigned. This PR therefore makes sure that OIDC managed team members do not receive the admin flag.

Co-authored-by: Daniel Herrmann <daniel.herrmann1@gmail.com>
Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2161
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-05 22:08:39 +00:00
..
api_routes.go feat(api tokens): add task attachment to api scopes 2024-02-14 15:00:16 +01:00
api_tokens.go docs(webhooks): add swagger docs for all webhook endpoints 2023-10-17 20:35:14 +02:00
api_tokens_rights.go
api_tokens_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
bulk_task.go
bulk_task_test.go
error.go fix(auth): use (issuer, name) to check for uniqueness of oidc teams (#2152) 2024-03-04 20:26:45 +00:00
events.go chore(webhooks): remove WebhookEvent interface 2023-10-17 20:35:13 +02:00
export.go fix(export): don't crash when an exported file does not exist 2024-02-10 13:45:12 +01:00
favorites.go
kanban.go fix: properly tag bucket-related operations 2023-10-24 16:13:15 +02:00
kanban_rights.go
kanban_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
label.go feat: accept hex values which start with a # 2023-10-24 16:12:22 +02:00
label_rights.go
label_task.go fix(labels): make sure labels of shared sub projects are usable 2023-12-03 14:33:43 +01:00
label_task_rights.go
label_task_test.go
label_test.go
link_sharing.go
link_sharing_rights.go
link_sharing_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
listeners.go fix(webhook): fetch all event details before sending the webhook 2024-02-10 14:15:32 +01:00
main_test.go
mentions.go
mentions_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
message.go
models.go fix: create webhooks table for fresh installation 2023-12-30 11:58:02 +01:00
notifications.go feat: rename frontend url config to public url 2024-02-09 14:41:55 +01:00
notifications_database.go
project.go feat(subscription): use a recursive cte to fetch subscriptions of parent projects 2024-03-03 15:34:18 +01:00
project_duplicate.go
project_duplicate_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
project_rights.go
project_team.go fix: lint 2023-10-10 20:35:43 +02:00
project_team_rights.go
project_team_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
project_test.go feat: fetch all projects with a recursive cte instead of recursive query 2024-02-28 13:42:45 +01:00
project_users.go fix: lint 2023-10-10 20:35:43 +02:00
project_users_rights.go
project_users_rights_test.go
project_users_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
rights.go
saved_filters.go
saved_filters_rights.go
saved_filters_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
subscription.go feat(subscription): use a recursive cte to fetch subscriptions of parent projects 2024-03-03 15:34:18 +01:00
subscription_rights.go
subscription_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
task_assignees.go fix(assignees): make sure task assignee created event contains the full task 2024-01-28 13:23:27 +01:00
task_assignees_rights.go
task_attachment.go fix(webhooks): make sure all events with tasks have the full task 2024-01-27 00:16:17 +01:00
task_attachment_rights.go
task_attachment_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
task_collection.go fix(project): pass user id to error message 2024-01-31 13:50:21 +01:00
task_collection_filter.go
task_collection_sort.go
task_collection_sort_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
task_collection_test.go feat: fetch all projects with a recursive cte instead of recursive query 2024-02-28 13:42:45 +01:00
task_comment_rights.go
task_comments.go fix(webhooks): make sure all events with tasks have the full task 2024-01-27 00:16:17 +01:00
task_comments_test.go fix: tests 2024-01-28 11:52:16 +01:00
task_overdue_reminder.go fix(projects): load projects only one when fetching subscriptions for a bunch of projects at once 2024-03-02 14:27:11 +01:00
task_overdue_reminder_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
task_relation.go fix(tasks): check for cycles during creation of task relations and prevent them 2024-02-10 13:30:41 +01:00
task_relation_rights.go
task_relation_test.go fix(tasks): check for cycles during creation of task relations and prevent them 2024-02-10 13:30:41 +01:00
task_reminder.go fix(projects): load projects only one when fetching subscriptions for a bunch of projects at once 2024-03-02 14:27:11 +01:00
task_reminder_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
task_search.go fix(filters): add explicit check for string slice filter 2024-02-05 22:08:17 +01:00
tasks.go fix(task): move done tasks to the done bucket when they are moved between projects and the new project has a done bucket 2024-03-03 18:13:47 +01:00
tasks_rights.go
tasks_test.go fix(task): move done tasks to the done bucket when they are moved between projects and the new project has a done bucket 2024-03-03 18:13:47 +01:00
team_members.go feat: assign users to teams via OIDC claims (#1393) 2024-03-02 08:47:10 +00:00
team_members_rights.go
team_members_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
teams.go fix(openid): OIDC teams should not have admins (#2161) 2024-03-05 22:08:39 +00:00
teams_rights.go
teams_rights_test.go
teams_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
typesense.go fix(typesense): update tasks in Typesense directly when the change happened 2024-01-28 11:47:17 +01:00
unit_tests.go
unsplash.go
user_delete.go fix(projects): delete child projects when deleting a project 2023-12-01 17:27:40 +01:00
user_delete_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
user_project.go
user_project_test.go
users.go
webhooks.go fix(webhooks): send application/json header 2023-12-06 14:09:49 +01:00
webhooks_rights.go feat(webhooks): prevent link shares from managing webhooks 2023-10-17 20:35:13 +02:00