1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2025-02-02 10:27:01 +01:00
vaultwarden/src/api
Mathijs van Veluw 4816f77fd7
Add partial role support for manager only using web-vault v2024.12.0 (#5219)
* Add partial role support for manager only

- Add the custom role which replaces the manager role
- Added mini-details endpoint used by v2024.11.1

These changes try to add the custom role in such a way that it stays compatible with the older manager role.
It will convert a manager role into a custom role, and if a manager has `access-all` rights, it will enable the correct custom roles.
Upon saving it will convert these back to the old format.

What this does is making sure you are able to revert back to an older version of Vaultwarden without issues.
This way we can support newer web-vault's and still be compatible with a previous Vaultwarden version if needed.

In the future this needs to be changed to full role support though.

Fixed the 2FA hide CSS since the order of options has changed

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

* Fix hide passkey login

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

* Fix hide create account

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

* Small changes for v2024.12.0

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

* Fix hide create account link

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

* Add pre-release web-vault

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

* Rename function to mention swapping uuid's

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

---------

Signed-off-by: BlackDex <black.dex@gmail.com>
2025-01-04 19:31:59 +01:00
..
core Add partial role support for manager only using web-vault v2024.12.0 (#5219) 2025-01-04 19:31:59 +01:00
admin.rs Some refactoring and optimizations (#5291) 2024-12-14 00:55:34 +01:00
icons.rs Update Rust and crates (#5248) 2024-12-05 22:10:59 +01:00
identity.rs Some refactoring and optimizations (#5291) 2024-12-14 00:55:34 +01:00
mod.rs Improved HTTP client (#4740) 2024-07-12 22:33:11 +02:00
notifications.rs Add extra linting (#4977) 2024-09-23 20:25:32 +02:00
push.rs Some refactoring and optimizations (#5291) 2024-12-14 00:55:34 +01:00
web.rs Add partial role support for manager only using web-vault v2024.12.0 (#5219) 2025-01-04 19:31:59 +01:00