vaultwarden/migrations/sqlite
Mathijs van Veluw d1dee04615
Some checks failed
Build / Build and Test ${{ matrix.channel }} (msrv) (push) Has been cancelled
Build / Build and Test ${{ matrix.channel }} (rust-toolchain) (push) Has been cancelled
Hadolint / Validate Dockerfile syntax (push) Has been cancelled
Release / skip_check (push) Has been cancelled
trivy / Check (push) Has been cancelled
Release / docker-build (alpine) (push) Has been cancelled
Release / docker-build (debian) (push) Has been cancelled
Add manage role for collections and groups (#5386)
* Add manage role for collections and groups

This commit will add the manage role/column to collections and groups.
We need this to allow users part of a collection either directly or via groups to be able to delete ciphers.
Without this, they are only able to either edit or view them when using new clients, since these check the manage role.

Still trying to keep it compatible with previous versions and able to revert to an older Vaultwarden version and the `access_all` feature of the older installations.
In a future version we should really check and fix these rights and create some kind of migration step to also remove the `access_all` feature and convert that to a `manage` option.
But this commit at least creates the base for this already.

This should resolve #5367

Signed-off-by: BlackDex <black.dex@gmail.com>

* Fix an issue with access_all

If owners or admins do not have the `access_all` flag set, in case they do not want to see all collection on the password manager view, they didn't see any collections at all anymore.

This should fix that they are still able to view all the collections and have access to it.

Signed-off-by: BlackDex <black.dex@gmail.com>

---------

Signed-off-by: BlackDex <black.dex@gmail.com>
2025-01-21 23:33:41 +01:00
..
2018-01-14-171611_create_tables
2018-02-17-205753_create_collections_and_orgs
2018-04-27-155151_create_users_ciphers
2018-05-08-161616_create_collection_cipher_map
2018-05-25-232323_update_attachments_reference
2018-06-01-112529_update_devices_twofactor_remember initial mysql support 2019-05-26 23:03:05 +02:00
2018-07-11-181453_create_u2f_twofactor
2018-08-27-172114_update_ciphers
2018-09-10-111213_add_invites
2018-09-19-144557_add_kdf_columns
2018-11-27-152651_add_att_key_columns
2019-05-26-216651_rename_key_and_type_columns
2019-10-10-083032_add_column_to_twofactor
2019-11-17-011009_add_email_verification
2020-03-13-205045_add_policy_table
2020-04-09-235005_add_cipher_delete_date Initial support for soft deletes 2020-04-17 22:35:27 +02:00
2020-07-01-214531_add_hide_passwords Add support for hiding passwords in a collection 2020-07-02 21:51:20 -07:00
2020-08-02-025025_add_favorites_table
2020-11-30-224000_add_user_enabled
2020-12-09-173101_add_stamp_exception
2021-03-11-190243_add_sends
2021-03-15-163412_rename_send_key
2021-04-30-233251_add_reprompt Add support for password reprompt 2021-05-11 20:09:57 -07:00
2021-05-11-205202_add_hide_email
2021-07-01-203140_add_password_reset_keys
2021-08-30-193501_create_emergency_access [PATCH] Some fixes to the Emergency Access PR 2021-09-17 01:25:47 +02:00
2021-10-24-164321_add_2fa_incomplete
2022-01-17-234911_add_api_key
2022-03-02-210038_update_devices_primary_key
2022-07-27-110000_add_group_support group support 2022-10-20 15:31:53 +02:00
2022-10-18-170602_add_events
2023-01-06-151600_add_reset_password_support
2023-01-11-205851_add_avatar_color
2023-01-31-222222_add_argon2
2023-02-18-125735_push_uuid_table
2023-06-02-200424_create_organization_api_key
2023-06-17-200424_create_auth_requests_table
2023-06-28-133700_add_collection_external_id
2023-09-01-170620_update_auth_request_table
2023-09-02-212336_move_user_external_id
2023-10-21-221242_add_cipher_key Implement cipher key encryption (#3990) 2023-10-23 00:18:14 +02:00
2024-01-12-210182_change_attachment_size
2024-02-14-140000_change_time_stamp_data_type
2024-06-05-131359_add_2fa_duo_store
2024-09-04-091351_use_device_type_for_mails
2025-01-09-172300_add_manage Add manage role for collections and groups (#5386) 2025-01-21 23:33:41 +01:00