vikunja/pkg/models
kolaente 99a67e09b1
feat(api): all usable routes behind authentication now have permissions
Previously, only routes which were coming from crudable entities could be used with an api token because there was no way to assign permissions to them. This change implements a more flexible structure for api permissions under the hood, allowing to add permissions for these routes and making them usable with an api token.

Resolves https://github.com/go-vikunja/vikunja/issues/266
2024-06-03 21:35:09 +02:00
..
api_routes.go feat(api): all usable routes behind authentication now have permissions 2024-06-03 21:35:09 +02: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 fix: lint 2023-09-01 08:39:25 +02:00
api_tokens_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
bulk_task.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
bulk_task_test.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
error.go fix(views): integration tests 2024-03-19 00:47:51 +01:00
events.go chore(webhooks): remove WebhookEvent interface 2023-10-17 20:35:13 +02:00
export.go fix(export): make export work with project views and new task positions 2024-04-13 21:07:06 +02:00
favorites.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
kanban.go fix(views): use correct assertion in test 2024-04-02 12:42:07 +02:00
kanban_rights.go fix(kanban): fetch project and view when checking permissions 2024-04-21 19:44:47 +02:00
kanban_test.go fix(views): use correct assertion in test 2024-04-02 12:42:07 +02:00
label.go fix(labels): allow link shares to add existing labels to a task 2024-04-21 15:12:27 +02:00
label_rights.go fix(labels): allow link shares to add existing labels to a task 2024-04-21 15:12:27 +02:00
label_task.go fix(labels): allow link shares to add existing labels to a task 2024-04-21 15:12:27 +02:00
label_task_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
label_task_test.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
label_test.go fix(test): cast result before comparing 2024-04-21 19:43:57 +02:00
link_sharing.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
link_sharing_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
link_sharing_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
listeners.go fix(tasks): make fetching tasks in buckets via typesense work 2024-04-13 17:52:47 +02:00
main_test.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
mentions.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
mentions_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
message.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
models.go feat(views)!: move done and default bucket setting to view 2024-03-19 00:47:47 +01:00
notifications.go fix(notifications): only sanitze html content in notifications, do not convert it to markdown 2024-04-07 13:34:53 +02:00
notifications_database.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
project.go fix(favorites): make favorites work with configurable views 2024-04-14 17:12:16 +02:00
project_duplicate.go fix(project): return full project after duplicating it 2024-04-13 22:39:40 +02:00
project_duplicate_test.go fix(views): duplicate all views and related entities when duplicating a project 2024-03-19 00:47:51 +01:00
project_rights.go fix(views): make setting task position in saved filters work 2024-03-19 00:47:49 +01:00
project_team.go fix: lint 2023-10-10 20:35:43 +02:00
project_team_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
project_team_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
project_test.go fix(views): stable assertion for bucket in tests 2024-03-19 17:27:03 +01:00
project_users.go fix: lint 2023-10-10 20:35:43 +02:00
project_users_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
project_users_rights_test.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
project_users_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
project_view.go fix(favorites): make favorites work with configurable views 2024-04-14 17:12:16 +02:00
project_view_rights.go fix(views): only allow project admins to manage views 2024-04-21 14:36:09 +02:00
reaction.go feat: emoji reactions for tasks and comments (#2196) 2024-03-12 19:25:58 +00:00
reaction_rights.go feat: emoji reactions for tasks and comments (#2196) 2024-03-12 19:25:58 +00:00
reaction_test.go feat: emoji reactions for tasks and comments (#2196) 2024-03-12 19:25:58 +00:00
rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
saved_filters.go feat(views): create task bucket relation when creating a new bucket 2024-03-19 00:47:49 +01:00
saved_filters_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
saved_filters_test.go fix(tests): make filter tests work again 2024-03-09 19:06:35 +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 chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
subscription_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
task_assignees.go fix: update task in typesense when adding a label or assignee to them 2024-04-06 14:04:04 +02:00
task_assignees_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
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 chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
task_attachment_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
task_collection.go fix(favorites): make favorites work with configurable views 2024-04-14 17:12:16 +02:00
task_collection_filter.go fix(filters): enclose values with a slash in them as strings so that date math values work 2024-04-06 12:08:57 +02:00
task_collection_sort.go feat(views): save view and position in Typesense 2024-03-19 00:47:47 +01:00
task_collection_sort_test.go fix(views): test assertions 2024-03-19 00:47:51 +01:00
task_collection_test.go fix(views): test assertions 2024-03-19 00:47:51 +01:00
task_comment_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
task_comments.go fix(comments): order comments by created timestamp instead of id 2024-04-13 14:45:12 +02: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_position.go fix(task): do not require admin permission to move tasks between buckets 2024-06-03 16:26:07 +02: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 chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
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(buckets): return correct task count for tasks in buckets 2024-04-14 17:21:53 +02:00
tasks.go fix(task): do not try to set bucket for filtered bucket configuration 2024-06-03 17:02:50 +02:00
tasks_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
tasks_test.go fix(views): test assertions 2024-03-19 00:47:51 +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 chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
team_members_test.go chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
teams.go fix(teams): fix duplicate teams being shown when new public team visibility feature is enabled (#2187) 2024-03-10 21:42:34 +00:00
teams_rights.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
teams_rights_test.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
teams_test.go feat(teams): add public flags to teams to allow easier sharing with other teams (#2179) 2024-03-10 14:04:32 +00:00
typesense.go fix(tasks): make fetching tasks in buckets via typesense work 2024-04-13 17:52:47 +02:00
unit_tests.go fix(views): update test fixtures for new structure 2024-03-19 00:47:51 +01:00
unsplash.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
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 chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
user_project_test.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
users.go chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
webhooks.go fix(webhook): log errors in webhook response 2024-06-03 13:11:44 +02:00
webhooks_rights.go feat(webhooks): prevent link shares from managing webhooks 2023-10-17 20:35:13 +02:00